diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-03 04:08:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-03 04:08:54 +0000 |
commit | 82cde03ddc2c28bfbca9d5dcc5ba6ba2f646066e (patch) | |
tree | b71a02b023ba0a3f8c5d544f32eb4893871c7516 /src/common | |
parent | 86f2ddc88de3fb240cb2deb44d035a45328622b7 (diff) | |
download | tor-82cde03ddc2c28bfbca9d5dcc5ba6ba2f646066e.tar tor-82cde03ddc2c28bfbca9d5dcc5ba6ba2f646066e.tar.gz |
Make it build on linux
svn:r1468
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index 29689e64b..9ce7e76b6 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -11,6 +11,9 @@ #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif +#ifdef HAVE_TIME_H +#include <time.h> +#endif #if _MSC_VER > 1300 #include <winsock2.h> @@ -149,7 +152,7 @@ long tv_udiff(struct timeval *start, struct timeval *end); void tv_addms(struct timeval *a, long ms); void tv_add(struct timeval *a, struct timeval *b); int tv_cmp(struct timeval *a, struct timeval *b); -time_t tor_timegm (struct tm *tm); +time_t tor_timegm(struct tm *tm); int write_all(int fd, const char *buf, size_t count, int isSocket); int read_all(int fd, char *buf, size_t count, int isSocket); |