[or-cvs] Make it build on linux
Nick Mathewson
nickm at seul.org
Sat Apr 3 04:08:56 UTC 2004
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv26211/src/common
Modified Files:
util.h
Log Message:
Make it build on linux
Index: util.h
===================================================================
RCS file: /home/or/cvsroot/src/common/util.h,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- util.h 3 Apr 2004 04:05:11 -0000 1.49
+++ util.h 3 Apr 2004 04:08:54 -0000 1.50
@@ -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 @@
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);
More information about the tor-commits
mailing list