diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-18 11:45:49 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-18 11:45:49 +0100 |
commit | 94c90385d2e728a4d37a25ce78b55b2ffeb429f9 (patch) | |
tree | 394cfe77aa80e44e691c4befab1a718b741309a0 | |
parent | e1799ed7c8f55a2f4467f45549bee3a058cdcd24 (diff) | |
download | rtmux-94c90385d2e728a4d37a25ce78b55b2ffeb429f9.tar.gz rtmux-94c90385d2e728a4d37a25ce78b55b2ffeb429f9.tar.bz2 rtmux-94c90385d2e728a4d37a25ce78b55b2ffeb429f9.zip |
Apple appear to have fixed kqueue in some OS X version (will wonder never
cease!) so use it since it appears to be faster.
-rw-r--r-- | osdep-darwin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/osdep-darwin.c b/osdep-darwin.c index 6b2b1d72..6d1bfb72 100644 --- a/osdep-darwin.c +++ b/osdep-darwin.c @@ -93,15 +93,19 @@ osdep_event_init(void) { struct event_base *base; +#ifndef __MAC_10_7 /* * On OS X, kqueue and poll are both completely broken and don't * work on anything except socket file descriptors (yes, really). */ setenv("EVENT_NOKQUEUE", "1", 1); setenv("EVENT_NOPOLL", "1", 1); +#endif base = event_init(); +#ifndef __MAC_10_7 unsetenv("EVENT_NOKQUEUE"); unsetenv("EVENT_NOPOLL"); +#endif return (base); } |