Set FD_SETSIZE to 4096 on Cygwin

This commit is contained in:
Yves Rutschle 2013-07-26 18:42:22 +01:00
parent e3159409c0
commit 59c9be54ad
1 changed files with 6 additions and 0 deletions

View File

@ -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 <sys/types.h>