]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
More muddling around to get configure.in to recognize recent libevents. Really,...
authorNick Mathewson <nickm@torproject.org>
Fri, 16 May 2008 20:13:10 +0000 (20:13 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 16 May 2008 20:13:10 +0000 (20:13 +0000)
svn:r14641

configure.in

index 1ce1f7fa4ec5301b64579dbbaf4fc2b3f9816b8b..0ae7cb965478a274c357b07ed5b1dab9782e36d7 100644 (file)
@@ -238,10 +238,14 @@ TOR_SEARCH_LIBRARY(libevent, $trylibeventdir, [-levent $TOR_LIB_WS32], [
 #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])