mirror of
https://github.com/tmux/tmux.git
synced 2025-04-23 21:08:48 +00:00
parent
df1bce40f0
commit
d4826aa1aa
@ -93,19 +93,15 @@ osdep_event_init(void)
|
|||||||
{
|
{
|
||||||
struct event_base *base;
|
struct event_base *base;
|
||||||
|
|
||||||
#ifndef __MAC_10_7
|
|
||||||
/*
|
/*
|
||||||
* On OS X, kqueue and poll are both completely broken and don't
|
* On OS X, kqueue and poll are both completely broken and don't
|
||||||
* work on anything except socket file descriptors (yes, really).
|
* work on anything except socket file descriptors (yes, really).
|
||||||
*/
|
*/
|
||||||
setenv("EVENT_NOKQUEUE", "1", 1);
|
setenv("EVENT_NOKQUEUE", "1", 1);
|
||||||
setenv("EVENT_NOPOLL", "1", 1);
|
setenv("EVENT_NOPOLL", "1", 1);
|
||||||
#endif
|
|
||||||
|
|
||||||
base = event_init();
|
base = event_init();
|
||||||
#ifndef __MAC_10_7
|
|
||||||
unsetenv("EVENT_NOKQUEUE");
|
unsetenv("EVENT_NOKQUEUE");
|
||||||
unsetenv("EVENT_NOPOLL");
|
unsetenv("EVENT_NOPOLL");
|
||||||
#endif
|
|
||||||
return (base);
|
return (base);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user