aboutsummaryrefslogtreecommitdiff
path: root/src/include/mhd_options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/mhd_options.h')
-rw-r--r--src/include/mhd_options.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/mhd_options.h b/src/include/mhd_options.h
index 2e798ebf..5965001e 100644
--- a/src/include/mhd_options.h
+++ b/src/include/mhd_options.h
@@ -48,16 +48,11 @@
48 headers. */ 48 headers. */
49#ifdef FD_SETSIZE 49#ifdef FD_SETSIZE
50/* FD_SETSIZE defined in command line or in MHD_config.h */ 50/* FD_SETSIZE defined in command line or in MHD_config.h */
51/* Use function to retrieve system default FD_SETSIZE value. */
52#define _MHD_SYS_DEFAULT_FD_SETSIZE get_system_fdsetsize_value()
53#elif defined(_WIN32) && !defined(__CYGWIN__) 51#elif defined(_WIN32) && !defined(__CYGWIN__)
54/* Platform with WinSock and without overridden FD_SETSIZE */ 52/* Platform with WinSock and without overridden FD_SETSIZE */
55#define FD_SETSIZE 2048 /* Override default small value */ 53#define FD_SETSIZE 2048 /* Override default small value */
56/* Use function to retrieve system default FD_SETSIZE value. */
57#define _MHD_SYS_DEFAULT_FD_SETSIZE get_system_fdsetsize_value()
58#else /* !FD_SETSIZE && !WinSock*/ 54#else /* !FD_SETSIZE && !WinSock*/
59/* System default value of FD_SETSIZE is used */ 55/* System default value of FD_SETSIZE is used */
60#define _MHD_SYS_DEFAULT_FD_SETSIZE FD_SETSIZE
61#define _MHD_FD_SETSIZE_IS_DEFAULT 1 56#define _MHD_FD_SETSIZE_IS_DEFAULT 1
62#endif /* !FD_SETSIZE && !WinSock*/ 57#endif /* !FD_SETSIZE && !WinSock*/
63 58
@@ -83,6 +78,10 @@
83#endif /* !WIN32_LEAN_AND_MEAN */ 78#endif /* !WIN32_LEAN_AND_MEAN */
84#endif /* _WIN32 */ 79#endif /* _WIN32 */
85 80
81#if defined(__VXWORKS__) || defined(__vxworks) || defined(OS_VXWORKS)
82#define RESTRICT __restrict__
83#endif /* __VXWORKS__ || __vxworks || OS_VXWORKS */
84
86#if LINUX+0 && (defined(HAVE_SENDFILE64) || defined(HAVE_LSEEK64)) && ! defined(_LARGEFILE64_SOURCE) 85#if LINUX+0 && (defined(HAVE_SENDFILE64) || defined(HAVE_LSEEK64)) && ! defined(_LARGEFILE64_SOURCE)
87/* On Linux, special macro is required to enable definitions of some xxx64 functions */ 86/* On Linux, special macro is required to enable definitions of some xxx64 functions */
88#define _LARGEFILE64_SOURCE 1 87#define _LARGEFILE64_SOURCE 1