Disable support for kqueue on MacOS/X.

Apparently MacOS/X doesn't support kqueue events on character devices.
This commit is contained in:
Guus Sliepen 2012-11-15 11:13:40 +01:00
parent 818c92e658
commit 8a77df9e28

View file

@ -450,6 +450,10 @@ int main2(int argc, char **argv) {
}
#endif
#ifdef HAVE_DARWIN
setenv("EVENT_NOKQUEUE", "1", 0);
#endif
if(!event_init()) {
logger(DEBUG_ALWAYS, LOG_ERR, "Error initializing libevent!");
return 1;