mirror of
				https://github.com/zeromq/libzmq.git
				synced 2025-11-04 04:10:00 +01:00 
			
		
		
		
	Problem: FD_SETSIZE not set to 16k for all build definitions
Solution: Set FD_SETSIZE to 16k for all other build definitions.
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
CC=gcc
 | 
			
		||||
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -I.
 | 
			
		||||
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -I.
 | 
			
		||||
LIBS=-lws2_32
 | 
			
		||||
 | 
			
		||||
OBJS = ctx.o reaper.o dist.o err.o \
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
CC=gcc
 | 
			
		||||
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -I.
 | 
			
		||||
CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -I.
 | 
			
		||||
LIBS=-lws2_32 -lIphlpapi
 | 
			
		||||
 | 
			
		||||
OBJS = ctx.o reaper.o dist.o err.o \
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,7 @@
 | 
			
		||||
      <Tool Name="VCXMLDataGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCWebServiceProxyGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCMIDLTool" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="0" PreprocessorDefinitions="NOMINMAX" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" WarningLevel="3" DebugInformationFormat="4" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="0" PreprocessorDefinitions="NOMINMAX" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" WarningLevel="3" DebugInformationFormat="4" />
 | 
			
		||||
      <Tool Name="VCManagedResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCPreLinkEventTool" />
 | 
			
		||||
@@ -30,7 +30,7 @@
 | 
			
		||||
      <Tool Name="VCXMLDataGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCWebServiceProxyGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCMIDLTool" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
 | 
			
		||||
      <Tool Name="VCManagedResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCPreLinkEventTool" />
 | 
			
		||||
@@ -49,7 +49,7 @@
 | 
			
		||||
      <Tool Name="VCXMLDataGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCWebServiceProxyGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCMIDLTool" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DZMQ_STATIC -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="0" PreprocessorDefinitions="NOMINMAX" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" WarningLevel="3" DebugInformationFormat="4" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DZMQ_STATIC -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="0" PreprocessorDefinitions="NOMINMAX" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" WarningLevel="3" DebugInformationFormat="4" />
 | 
			
		||||
      <Tool Name="VCManagedResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCPreLinkEventTool" />
 | 
			
		||||
@@ -66,7 +66,7 @@
 | 
			
		||||
      <Tool Name="VCXMLDataGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCWebServiceProxyGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCMIDLTool" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DZMQ_STATIC -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DZMQ_STATIC -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
 | 
			
		||||
      <Tool Name="VCManagedResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCPreLinkEventTool" />
 | 
			
		||||
@@ -83,7 +83,7 @@
 | 
			
		||||
      <Tool Name="VCXMLDataGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCWebServiceProxyGeneratorTool" />
 | 
			
		||||
      <Tool Name="VCMIDLTool" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=4096 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" AdditionalIncludeDirectories="../../../../OpenPGM/include" PreprocessorDefinitions="ZMQ_HAVE_OPENPGM" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
 | 
			
		||||
      <Tool Name="VCCLCompilerTool" AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=16384 -DZMQ_USE_SELECT -D_CRT_SECURE_NO_WARNINGS" Optimization="2" EnableIntrinsicFunctions="true" AdditionalIncludeDirectories="../../../../OpenPGM/include" PreprocessorDefinitions="ZMQ_HAVE_OPENPGM" RuntimeLibrary="2" EnableFunctionLevelLinking="true" WarningLevel="3" DebugInformationFormat="3" />
 | 
			
		||||
      <Tool Name="VCManagedResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCResourceCompilerTool" />
 | 
			
		||||
      <Tool Name="VCPreLinkEventTool" />
 | 
			
		||||
 
 | 
			
		||||
@@ -262,8 +262,8 @@ case "${host_os}" in
 | 
			
		||||
            CPPFLAGS="-DZMQ_STATIC $CPPFLAGS"
 | 
			
		||||
        fi
 | 
			
		||||
        
 | 
			
		||||
	# Set FD_SETSIZE to 1024
 | 
			
		||||
	CPPFLAGS=" -DFD_SETSIZE=1024 $CPPFLAGS"
 | 
			
		||||
	# Set FD_SETSIZE to 16384
 | 
			
		||||
	CPPFLAGS=" -DFD_SETSIZE=16384 $CPPFLAGS"
 | 
			
		||||
        ;;
 | 
			
		||||
    *cygwin*)
 | 
			
		||||
        # Define on Cygwin to enable all library features
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user