Nmap Development mailing list archives

WSAPoll() needs Vista


From: Gisle Vanem <gvanem () broadpark no>
Date: Thu, 01 Nov 2012 21:06:26 +0100

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

--gv
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: