From 59c9be54ad6423c26ae1fb8012f0ecf219e26ceb Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Fri, 26 Jul 2013 18:42:22 +0100 Subject: [PATCH] Set FD_SETSIZE to 4096 on Cygwin --- common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.h b/common.h index b247f07..81fc3e6 100755 --- a/common.h +++ b/common.h @@ -1,6 +1,12 @@ #ifndef __COMMON_H_ #define __COMMON_H_ +/* FD_SETSIZE is 64 on Cygwin, which is really low. Just redefining it is + * enough for the macros to adapt (http://support.microsoft.com/kb/111855) + */ +#ifdef __CYGWIN__ +#define FD_SETSIZE 4096 +#endif #define _GNU_SOURCE #include