Nmap Development mailing list archives
Re: WSAPoll() needs Vista
From: David Fifield <david () bamsoftware com>
Date: Thu, 1 Nov 2012 16:09:22 -0700
On Thu, Nov 01, 2012 at 09:29:43PM +0100, Henri Doreau wrote:
2012/11/1 Gisle Vanem <gvanem () broadpark no>I just built nmap on my Win-XP machine from today's SVN and got an error stating that WSAPoll wasn't found in ws2_32.dll. [1] confirms this. So, for me an easy fix for me was to "#define HAVE_POLL" only for (_WIN32_WINNT >= 0x0600): --- SVN-Latest\nsock\include\**nsock_winconfig.h 2012-11-01 18:11:41.214843500 +0100 +++ nsock\include\nsock_winconfig.**h 2012-11-01 20:42:02.402343500 +0100 @@ -97,6 +97,8 @@ #define HAVE_PCAP 1 #endif +#if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600) #define HAVE_POLL 1 +#endif #endif /* NSOCK_WINCONFIG_H */ [1] http://msdn.microsoft.com/en-**us/library/windows/desktop/** ms741669(v=vs.85).aspx<http://msdn.microsoft.com/en-us/library/windows/desktop/ms741669(v=vs.85).aspx>thanks for the report and the patch. Is this check the standard way to do it on windows?
I think this is a fairly standard way to do it on Windows. Doing it this way is fine with me. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- WSAPoll() needs Vista Gisle Vanem (Nov 01)
- Re: WSAPoll() needs Vista Henri Doreau (Nov 01)
- Re: WSAPoll() needs Vista Gisle Vanem (Nov 01)
- Re: WSAPoll() needs Vista David Fifield (Nov 01)
- Re: WSAPoll() needs Vista Gisle Vanem (Nov 02)
- Re: WSAPoll() needs Vista David Fifield (Nov 03)
- Re: WSAPoll() needs Vista Gisle Vanem (Nov 01)
- Re: WSAPoll() needs Vista Henri Doreau (Nov 01)
- Re: WSAPoll() needs Vista David Fifield (Nov 01)
- Re: WSAPoll() needs Vista Henri Doreau (Nov 02)