From: Guus Sliepen Date: Thu, 15 Nov 2012 10:24:18 +0000 (+0100) Subject: Also don't use poll() on MacOS/X. X-Git-Tag: release-1.1pre4~19 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=8f9ee895224b39347783f3119343efc3bdaa3511;p=tinc Also don't use poll() on MacOS/X. --- diff --git a/src/tincd.c b/src/tincd.c index 28f30a52..be131643 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -451,7 +451,10 @@ int main2(int argc, char **argv) { #endif #ifdef HAVE_DARWIN - setenv("EVENT_NOKQUEUE", "1", 0); + if(!getenv("EVENT_KQUEUE")) + setenv("EVENT_NOKQUEUE", "1", 0); + if(!getenv("EVENT_POLL")) + setenv("EVENT_NOPOLL", "1", 0); #endif if(!event_init()) {