diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-26 14:57:35 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-26 15:29:06 +0300 |
commit | 14f748f9c0dd334675d7a8e23c3fe8b8f84b6361 (patch) | |
tree | ce87b63387774d1a2100686e5b7e1571cdbbaf34 | |
parent | bb9fdec12ee0ace4672311ad6a23dd421a6c012f (diff) | |
download | libmicrohttpd-14f748f9c0dd334675d7a8e23c3fe8b8f84b6361.tar.gz libmicrohttpd-14f748f9c0dd334675d7a8e23c3fe8b8f84b6361.zip |
Used larger number for FD_SETSIZE on Cygwin.
Default small number (64) is the same like on pure W32 and way too small.
-rw-r--r-- | src/include/mhd_options.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/mhd_options.h b/src/include/mhd_options.h index 25b5cd52..df45cf9b 100644 --- a/src/include/mhd_options.h +++ b/src/include/mhd_options.h | |||
@@ -57,13 +57,13 @@ | |||
57 | headers. */ | 57 | headers. */ |
58 | #ifdef FD_SETSIZE | 58 | #ifdef FD_SETSIZE |
59 | /* FD_SETSIZE defined in command line or in MHD_config.h */ | 59 | /* FD_SETSIZE defined in command line or in MHD_config.h */ |
60 | #elif defined(_WIN32) && !defined(__CYGWIN__) | 60 | #elif defined(_WIN32) || defined(__CYGWIN__) |
61 | /* Platform with WinSock and without overridden FD_SETSIZE */ | 61 | /* Platform with WinSock and without overridden FD_SETSIZE */ |
62 | #define FD_SETSIZE 2048 /* Override default small value */ | 62 | #define FD_SETSIZE 2048 /* Override default small value (64) */ |
63 | #else /* !FD_SETSIZE && !WinSock*/ | 63 | #else /* !FD_SETSIZE && !W32 */ |
64 | /* System default value of FD_SETSIZE is used */ | 64 | /* System default value of FD_SETSIZE is used */ |
65 | #define _MHD_FD_SETSIZE_IS_DEFAULT 1 | 65 | #define _MHD_FD_SETSIZE_IS_DEFAULT 1 |
66 | #endif /* !FD_SETSIZE && !WinSock*/ | 66 | #endif /* !FD_SETSIZE && !W32 */ |
67 | 67 | ||
68 | #if defined(HAVE_LINUX_SENDFILE) || defined(HAVE_FREEBSD_SENDFILE) || \ | 68 | #if defined(HAVE_LINUX_SENDFILE) || defined(HAVE_FREEBSD_SENDFILE) || \ |
69 | defined(HAVE_DARWIN_SENDFILE) || defined(HAVE_SOLARIS_SENDFILE) | 69 | defined(HAVE_DARWIN_SENDFILE) || defined(HAVE_SOLARIS_SENDFILE) |
@@ -82,7 +82,7 @@ | |||
82 | #define _LP64 | 82 | #define _LP64 |
83 | #endif | 83 | #endif |
84 | 84 | ||
85 | #if defined(_WIN32) | 85 | #if defined(_WIN32) && ! defined(__CYGWIN__) |
86 | #ifndef _WIN32_WINNT | 86 | #ifndef _WIN32_WINNT |
87 | #define _WIN32_WINNT 0x0501 | 87 | #define _WIN32_WINNT 0x0501 |
88 | #else /* _WIN32_WINNT */ | 88 | #else /* _WIN32_WINNT */ |
@@ -94,7 +94,7 @@ | |||
94 | /* Do not include unneeded parts of W32 headers. */ | 94 | /* Do not include unneeded parts of W32 headers. */ |
95 | #define WIN32_LEAN_AND_MEAN 1 | 95 | #define WIN32_LEAN_AND_MEAN 1 |
96 | #endif /* !WIN32_LEAN_AND_MEAN */ | 96 | #endif /* !WIN32_LEAN_AND_MEAN */ |
97 | #endif /* _WIN32 */ | 97 | #endif /* _WIN32 && ! __CYGWIN__ */ |
98 | 98 | ||
99 | #if defined(__VXWORKS__) || defined(__vxworks) || defined(OS_VXWORKS) | 99 | #if defined(__VXWORKS__) || defined(__vxworks) || defined(OS_VXWORKS) |
100 | #define RESTRICT __restrict__ | 100 | #define RESTRICT __restrict__ |