Also don't use poll() on MacOS/X.

This commit is contained in:
Guus Sliepen 2012-11-15 11:24:18 +01:00
parent 8a77df9e28
commit 8f9ee89522

View file

@ -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()) {