gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 01/02: Used larger number for FD_SETSIZE on


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/02: Used larger number for FD_SETSIZE on Cygwin. Default small number (64) is the same like on pure W32 and way too small.
Date: Sun, 26 Nov 2017 13:35:39 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 14f748f9c0dd334675d7a8e23c3fe8b8f84b6361
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Nov 26 14:57:35 2017 +0300

    Used larger number for FD_SETSIZE on Cygwin.
    Default small number (64) is the same like on pure W32 and way too small.
---
 src/include/mhd_options.h | 12 ++++++------
 1 file 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 @@
    headers. */
 #ifdef FD_SETSIZE
 /* FD_SETSIZE defined in command line or in MHD_config.h */
-#elif defined(_WIN32) && !defined(__CYGWIN__)
+#elif defined(_WIN32) || defined(__CYGWIN__)
 /* Platform with WinSock and without overridden FD_SETSIZE */
-#define FD_SETSIZE 2048 /* Override default small value */
-#else  /* !FD_SETSIZE && !WinSock*/
+#define FD_SETSIZE 2048 /* Override default small value (64) */
+#else  /* !FD_SETSIZE && !W32 */
 /* System default value of FD_SETSIZE is used */
 #define _MHD_FD_SETSIZE_IS_DEFAULT 1
-#endif /* !FD_SETSIZE && !WinSock*/
+#endif /* !FD_SETSIZE && !W32 */
 
 #if defined(HAVE_LINUX_SENDFILE) || defined(HAVE_FREEBSD_SENDFILE) || \
     defined(HAVE_DARWIN_SENDFILE) || defined(HAVE_SOLARIS_SENDFILE)
@@ -82,7 +82,7 @@
 #define _LP64
 #endif
 
-#if defined(_WIN32)
+#if defined(_WIN32) && ! defined(__CYGWIN__)
 #ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x0501
 #else /* _WIN32_WINNT */
@@ -94,7 +94,7 @@
 /* Do not include unneeded parts of W32 headers. */
 #define WIN32_LEAN_AND_MEAN 1
 #endif /* !WIN32_LEAN_AND_MEAN */
-#endif /* _WIN32 */
+#endif /* _WIN32 && ! __CYGWIN__ */
 
 #if defined(__VXWORKS__) || defined(__vxworks) || defined(OS_VXWORKS)
 #define RESTRICT __restrict__

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]