]> granicus.if.org Git - libevent/commitdiff
Use "unlimited select" on OSX so that we can have more than FD_SETSIZE fds
authorNick Mathewson <nickm@torproject.org>
Tue, 5 Jul 2011 04:36:09 +0000 (00:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 5 Jul 2011 04:36:09 +0000 (00:36 -0400)
select.c

index 349474d5086ed7fdb59da7deeb060452e7509ceb..805c08d0efc1b692cb86a6ee3fe92c7fe208e126 100644 (file)
--- a/select.c
+++ b/select.c
 #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>