*actually* fix build in 0.2.0 with libevent 1.4.x. (Backport)
svn:r14789
This commit is contained in:
parent
bbe2249030
commit
8ff53f98e5
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue