From: Nick Mathewson Date: Sat, 3 Apr 2004 04:08:54 +0000 (+0000) Subject: Make it build on linux X-Git-Tag: tor-0.0.6incompat-merged~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82cde03ddc2c28bfbca9d5dcc5ba6ba2f646066e;p=thirdparty%2Ftor.git Make it build on linux svn:r1468 --- diff --git a/src/common/util.h b/src/common/util.h index 29689e64bb..9ce7e76b61 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -11,6 +11,9 @@ #ifdef HAVE_SYS_TIME_H #include #endif +#ifdef HAVE_TIME_H +#include +#endif #if _MSC_VER > 1300 #include @@ -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);