Disable support for kqueue on MacOS/X.
[tinc] / src / tincd.c
index 9f94d89..28f30a5 100644 (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;