summaryrefslogtreecommitdiff
path: root/select.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-05 00:36:09 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-05 00:36:09 -0400
commit1fb5cc682964f911ae5c7a563da9fccc4b5375c6 (patch)
treeaacc23f947555110fc9ef1ba9bc8ecb7615025e9 /select.c
parent71349d080b4aa0138ff6c0e5f9fb1135b9c7f135 (diff)
downloadlibevent-1fb5cc682964f911ae5c7a563da9fccc4b5375c6.tar.gz
Use "unlimited select" on OSX so that we can have more than FD_SETSIZE fds
Diffstat (limited to 'select.c')
-rw-r--r--select.c6
1 files changed, 6 insertions, 0 deletions
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 <sys/types.h>
#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>