It does, it's just a bit tricky to do right. You need to make sure you set the correct #defines before anything else consistently across the build:
#if LINUX #include <features.h> #if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) # include <bits/types.h> # undef __FD_SETSIZE # define __FD_SETSIZE 8192 #endif #else #define FD_SETSIZE 65536 #endif Do this before you #include anything else in all C files, and you should be fine. -Christian On 03/11/2015 04:34 PM, Luke Dashjr wrote: > On Thursday, March 05, 2015 9:49:57 AM Christian Grothoff wrote: >> Also, redefining FD_SETSIZE is also IMO a very good possibility. > > Note this does not work on glibc systems. >
