Преглед изворни кода

More muddling around to get configure.in to recognize recent libevents. Really, libevent should be fixed too so that the next poor sucker doesn't have to do this.

svn:r14641
Nick Mathewson пре 18 година
родитељ
комит
29a9624754
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      configure.in

+ 6 - 2
configure.in

@@ -238,10 +238,14 @@ TOR_SEARCH_LIBRARY(libevent, $trylibeventdir, [-levent $TOR_LIB_WS32], [
 #include <stdlib.h>
 #include <stdlib.h>
 #include <sys/time.h>
 #include <sys/time.h>
 #include <sys/types.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
 #ifdef WIN32
-{WSAData d; WSAStartup(0x101,&d); }
+{WSADATA d; WSAStartup(0x101,&d); }
 #endif
 #endif
 event_init(); exit(0);
 event_init(); exit(0);
 ], [--with-libevent-dir], [/opt/libevent])
 ], [--with-libevent-dir], [/opt/libevent])