[or-cvs] r14789: *actually* fix build in 0.2.0 with libevent 1.4.x. (Backport (tor/branches/tor-0_2_0-patches)

nickm at seul.org nickm at seul.org
Wed May 28 23:41:07 UTC 2008


Author: nickm
Date: 2008-05-28 19:41:07 -0400 (Wed, 28 May 2008)
New Revision: 14789

Modified:
   tor/branches/tor-0_2_0-patches/configure.in
Log:
*actually* fix build in 0.2.0 with libevent 1.4.x.  (Backport)

Modified: tor/branches/tor-0_2_0-patches/configure.in
===================================================================
--- tor/branches/tor-0_2_0-patches/configure.in	2008-05-28 22:52:02 UTC (rev 14788)
+++ tor/branches/tor-0_2_0-patches/configure.in	2008-05-28 23:41:07 UTC (rev 14789)
@@ -237,10 +237,14 @@
 #include <stdlib.h>
 #include <sys/time.h>
 #include <sys/types.h>
-#include <event.h>], [void exit(int); void *event_init(void);],
+#include <event.h>], [
+#ifdef WIN32
+#include <winsock2.h>
+#endif
+void exit(int); void *event_init(void);],
     [
 #ifdef WIN32
-{WSAData d; WSAStartup(0x101,&d); }
+{WSADATA d; WSAStartup(0x101,&d); }
 #endif
 event_init(); exit(0);
 ], [--with-libevent-dir], [/opt/libevent])



More information about the tor-commits mailing list