mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-14 16:17:14 +03:00
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_
|
#ifndef __COMMON_H_
|
||||||
#define __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
|
#define _GNU_SOURCE
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user