set FD_SETSIZE to 1024 on mingw

Sets FD_SETSIZE to 1024 under mingw systems, increasing it from the default of 64, and brings it into line with the previous limit for CMake builds on mingw.
This commit is contained in:
Michael 2015-05-02 01:11:54 +10:00
parent 235a1dbf7d
commit 095741cd9c

View File

@ -265,6 +265,9 @@ case "${host_os}" in
if test "x$enable_static" = "xyes"; then if test "x$enable_static" = "xyes"; then
AC_MSG_ERROR([Building static libraries is not supported under MinGW32]) AC_MSG_ERROR([Building static libraries is not supported under MinGW32])
fi fi
# Additional for windows to set FD_SETSIZE to a larger number
CPPFLAGS=" -DFD_SETSIZE=1024 $CPPFLAGS"
;; ;;
*cygwin*) *cygwin*)
# Define on Cygwin to enable all library features # Define on Cygwin to enable all library features