Also don't use poll() on MacOS/X.
This commit is contained in:
parent
8a77df9e28
commit
8f9ee89522
1 changed files with 4 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue