summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-05-28 23:41:07 +0000
committerNick Mathewson <nickm@torproject.org>2008-05-28 23:41:07 +0000
commit8ff53f98e5157fd98ac51e6704685f621345cfe7 (patch)
treea5ebb3f75aa3e435d41f68624616edbde23e3814
parentbbe2249030efafe732d02f3f6b23cf2724565da0 (diff)
downloadtor-8ff53f98e5157fd98ac51e6704685f621345cfe7.tar.gz
tor-8ff53f98e5157fd98ac51e6704685f621345cfe7.zip
*actually* fix build in 0.2.0 with libevent 1.4.x. (Backport)
svn:r14789
-rw-r--r--configure.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 733e44798e..d502b1b948 100644
--- a/configure.in
+++ b/configure.in
@@ -237,10 +237,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])