Index: charpool.cc =================================================================== --- charpool.cc (revision 29054) +++ charpool.cc (working copy) @@ -93,13 +93,14 @@ /* $Id$ */ +#include "nmap_error.h" + #include #include "nbase.h" /* Character pool memory allocation */ #include "charpool.h" -#include "nmap_error.h" static char *charpool[16]; static int currentcharpool; Index: libnetutil/netutil.cc =================================================================== --- libnetutil/netutil.cc (revision 29054) +++ libnetutil/netutil.cc (working copy) @@ -98,8 +98,6 @@ #include "../nmap_config.h" #endif -#include "nbase.h" - #ifdef WIN32 #include "mswin32/winclude.h" #include "pcap-int.h" @@ -107,6 +105,8 @@ #include #endif +#include "nbase.h" + #include #include #include @@ -4515,7 +4515,7 @@ #endif /* (defined(RLIMIT_OFILE) || defined(RLIMIT_NOFILE)) */ #endif /* !WIN32 */ - return 0; + return FD_SETSIZE; /* return this value for windows */ } Index: mswin32/nmap.vcxproj =================================================================== --- mswin32/nmap.vcxproj (revision 29054) +++ mswin32/nmap.vcxproj (working copy) @@ -39,8 +39,8 @@ <_ProjectFileVersion>10.0.30319.1 - .\$(Configuration)\ - .\$(Configuration)\ + $(Configuration)\ + $(Configuration)\ .\Release\ .\Release\ Index: mswin32/winclude.h =================================================================== --- mswin32/winclude.h (revision 29054) +++ mswin32/winclude.h (working copy) @@ -96,6 +96,7 @@ #ifndef WINCLUDE_H #define WINCLUDE_H +#define FD_SETSIZE 1024 #include "nmap_winconfig.h" #include Index: mswin32/winfix.h =================================================================== --- mswin32/winfix.h (revision 29054) +++ mswin32/winfix.h (working copy) @@ -1,6 +1,7 @@ #ifndef WINFIX_H #define WINFIX_H +#define FD_SETSIZE 1024 #include #include #include Index: nbase/nbase_winconfig.h =================================================================== --- nbase/nbase_winconfig.h (revision 29054) +++ nbase/nbase_winconfig.h (working copy) @@ -167,4 +167,6 @@ /* Apparently __func__ isn't yet supported */ #define __func__ __FUNCTION__ +#define FD_SETSIZE 1024 + #endif /* NBASE_WINCONFIG_H */ Index: nmap.h =================================================================== --- nmap.h (revision 29054) +++ nmap.h (working copy) @@ -100,6 +100,7 @@ /************************INCLUDES**********************************/ #ifdef WIN32 +#define FD_SETSIZE 1024 #include "mswin32\winclude.h" #endif Index: nmap_error.h =================================================================== --- nmap_error.h (revision 29054) +++ nmap_error.h (working copy) @@ -96,6 +96,7 @@ #define NMAP_ERROR_H #ifdef WIN32 +#define FD_SETSIZE 1024 #include "mswin32\winclude.h" #endif Index: nping/nping.h =================================================================== --- nping/nping.h (revision 29054) +++ nping/nping.h (working copy) @@ -93,6 +93,10 @@ #ifndef NPING_H #define NPING_H 1 +#ifdef WIN32 +#define FD_SETSIZE 1024 +#endif + /* Common library requirements and definitions *******************************/ #include #include Index: nping/winclude.h =================================================================== --- nping/winclude.h (revision 29054) +++ nping/winclude.h (working copy) @@ -96,6 +96,8 @@ #ifndef WINCLUDE_H #define WINCLUDE_H +#define FD_SETSIZE 1024 + #include "nping_winconfig.h" #include Index: nse_pcrelib.cc =================================================================== --- nse_pcrelib.cc (revision 29054) +++ nse_pcrelib.cc (working copy) @@ -2,6 +2,7 @@ /* Reuben Thomas nov00-18dec04 */ /* Shmuel Zeigerman may04-18dec04 */ +#include "nmap_error.h" #include #include @@ -15,7 +16,6 @@ #include #include "nbase.h" -#include "nmap_error.h" #ifdef HAVE_PCRE_PCRE_H # include Index: tcpip.h =================================================================== --- tcpip.h (revision 29054) +++ tcpip.h (working copy) @@ -176,6 +176,7 @@ #ifdef __cplusplus extern "C" { #endif +#define FD_SETSIZE 1024 #include #ifdef __cplusplus }