From: Nick Mathewson Date: Tue, 5 Jul 2011 04:36:09 +0000 (-0400) Subject: Use "unlimited select" on OSX so that we can have more than FD_SETSIZE fds X-Git-Tag: release-2.1.1-alpha~242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fb5cc682964f911ae5c7a563da9fccc4b5375c6;p=libevent Use "unlimited select" on OSX so that we can have more than FD_SETSIZE fds --- diff --git a/select.c b/select.c index 349474d5..805c08d0 100644 --- a/select.c +++ b/select.c @@ -29,6 +29,12 @@ #include "event2/event-config.h" #include "evconfig-private.h" +#ifdef __APPLE__ +/* Apple wants us to define this if we might ever pass more than + * FD_SETSIZE bits to select(). */ +#define _DARWIN_UNLIMITED_SELECT +#endif + #include #ifdef _EVENT_HAVE_SYS_TIME_H #include