projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Also don't use poll() on MacOS/X.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
28f30a5
..
be13164
100644
(file)
--- 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()) {