summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2018-07-31 04:45:57 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2018-07-31 04:45:57 +0000
commit77bff4474e388edddffdeb5e8f65b748575533f1 (patch)
treee82c2f7195c1113c0be854f29b91520369632f7c /ev.c
parentb6aee17eb13d3d6e1a158a91175ab53cfcb78e1a (diff)
downloadlibev-77bff4474e388edddffdeb5e8f65b748575533f1.tar.gz
libev-77bff4474e388edddffdeb5e8f65b748575533f1.zip
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/ev.c b/ev.c
index b37de6f..693838b 100644
--- a/ev.c
+++ b/ev.c
@@ -164,6 +164,16 @@
#endif
+/* OS X, in its infinite idiocy, actually HARDCODES
+ * a limit of 1024 into their select. Where people have brains,
+ * OS X engineers apparently have a vacuum. Or maybe they were
+ * ordered to have a vacuum, or they do anything for money.
+ * This might help. Or not.
+ * Note that this must be defined early, as other include files
+ * will rely on this define as well.
+ */
+#define _DARWIN_UNLIMITED_SELECT 1
+
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
@@ -211,14 +221,6 @@
# undef EV_AVOID_STDIO
#endif
-/* OS X, in its infinite idiocy, actually HARDCODES
- * a limit of 1024 into their select. Where people have brains,
- * OS X engineers apparently have a vacuum. Or maybe they were
- * ordered to have a vacuum, or they do anything for money.
- * This might help. Or not.
- */
-#define _DARWIN_UNLIMITED_SELECT 1
-
/* this block tries to deduce configuration from header-defined symbols and defaults */
/* try to deduce the maximum number of signals on this platform */