Ticket #21051: bug21051_v2.diff

File bug21051_v2.diff, 566 bytes (added by nickm, 3 years ago)
  • configure.ac

    diff --git a/configure.ac b/configure.ac
    index 7ba4a4139ec611..ed01888de917ee 100644
    a b TOR_SEARCH_LIBRARY(libevent, $trylibeventdir, [-levent $STATIC_LIBEVENT_FLAGS $T 
    508508#ifdef _WIN32
    509509#include <winsock2.h>
    510510#endif
    511 void *event_init(void);],
     511struct event_base;
     512struct event_base *event_base_new(void);],
    512513    [
    513514#ifdef _WIN32
    514515{WSADATA d; WSAStartup(0x101,&d); }
    515516#endif
    516 event_init();
     517event_base_new();
    517518], [--with-libevent-dir], [/opt/libevent])
    518519
    519520dnl Determine the incantation needed to link libevent.