diff --git a/CMakeLists.txt b/CMakeLists.txt index afab40cf..d5e61f4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,7 +269,7 @@ if(MSVC) -DWIN32 -DDLL_EXPORT # NB: May require tweaking for highly connected applications. - -DFD_SETSIZE=1025 + -DFD_SETSIZE=1024 -D_CRT_SECURE_NO_WARNINGS) # Parallel make. diff --git a/builds/mingw32/Makefile.mingw32 b/builds/mingw32/Makefile.mingw32 index 95cea7d3..447cf504 100644 --- a/builds/mingw32/Makefile.mingw32 +++ b/builds/mingw32/Makefile.mingw32 @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=1025 -I. +CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=1024 -I. LIBS=-lws2_32 OBJS = ctx.o reaper.o dist.o err.o \ diff --git a/builds/msvc/libzmq/libzmq.vcproj b/builds/msvc/libzmq/libzmq.vcproj index 01adfd1a..9cdef064 100644 --- a/builds/msvc/libzmq/libzmq.vcproj +++ b/builds/msvc/libzmq/libzmq.vcproj @@ -40,7 +40,7 @@ /> copy ..\platform.hpp ..\..\..\src - _CRT_SECURE_NO_WARNINGS;DLL_EXPORT;FD_SETSIZE=1025;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;DLL_EXPORT;FD_SETSIZE=1024;%(PreprocessorDefinitions) Ws2_32.lib;Rpcrt4.lib;%(AdditionalDependencies) diff --git a/builds/msvc/properties/ZeroMQ_Static.props b/builds/msvc/properties/ZeroMQ_Static.props index 9cdb107a..dec17f85 100644 --- a/builds/msvc/properties/ZeroMQ_Static.props +++ b/builds/msvc/properties/ZeroMQ_Static.props @@ -13,7 +13,7 @@ copy ..\platform.hpp ..\..\..\src - _CRT_SECURE_NO_WARNINGS;ZMQ_STATIC;FD_SETSIZE=1025;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;ZMQ_STATIC;FD_SETSIZE=1024;%(PreprocessorDefinitions) Ws2_32.lib;Rpcrt4.lib;%(AdditionalDependencies)