mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-18 16:54:42 -04:00
Use "unlimited select" on OSX so that we can have more than FD_SETSIZE fds
This commit is contained in:
parent
71349d080b
commit
1fb5cc6829
6
select.c
6
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user