mirror of https://github.com/moparisthebest/sslh
Set FD_SETSIZE to 4096 on Cygwin
This commit is contained in:
parent
e3159409c0
commit
59c9be54ad
6
common.h
6
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 <sys/types.h>
|
||||
|
|
Loading…
Reference in New Issue