Only set HAVE_POLL on Vista and later.

Patch by Gisle Vanem
This commit is contained in:
henri 2012-11-02 10:53:24 +00:00
parent 4c298e6e67
commit 99424a2b3e
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,8 @@
# Nmap Changelog ($Id$); -*-text-*-
o [Nsock] Fixed compilation on Windows XP by restricting the use
of the poll engine to Vista and later. [Gisle Vanem]
o [NSE] Added support for ECDSA keys to ssh-hostkey.nse. [Adam Števko]
o [Nsock] Added new poll and kqueue engines. [Henri Doreau]

View file

@ -97,6 +97,9 @@
#define HAVE_PCAP 1
#endif
/* WSAPoll() isn't available before Vista */
#if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600)
#define HAVE_POLL 1
#endif
#endif /* NSOCK_WINCONFIG_H */