mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Bump earliest supported Windows version to Vista, enabling poll nsock engine.
This commit is contained in:
parent
dc71d91cea
commit
f90587f131
2 changed files with 6 additions and 4 deletions
|
|
@ -125,17 +125,17 @@
|
|||
#ifndef NBASE_WINUNIX_H
|
||||
#define NBASE_WINUNIX_H
|
||||
|
||||
#include "nbase_winconfig.h"
|
||||
|
||||
/* Define the earliest version of Windows we support. These control
|
||||
what parts of the Windows API are available. The available constants
|
||||
are in <sdkddkver.h>.
|
||||
http://msdn.microsoft.com/en-us/library/aa383745.aspx
|
||||
http://blogs.msdn.com/oldnewthing/archive/2007/04/11/2079137.aspx */
|
||||
#undef _WIN32_WINNT
|
||||
#define _WIN32_WINNT _WIN32_WINNT_WIN2K
|
||||
#define _WIN32_WINNT _WIN32_WINNT_WIN6
|
||||
#undef NTDDI_VERSION
|
||||
#define NTDDI_VERSION NTDDI_WIN2KSP4
|
||||
#define NTDDI_VERSION NTDDI_WIN6
|
||||
|
||||
#include "nbase_winconfig.h"
|
||||
|
||||
/* Winsock defines its own error codes that are analogous to but
|
||||
different from those in <errno.h>. The error macros have similar
|
||||
|
|
|
|||
|
|
@ -99,6 +99,8 @@
|
|||
#define PCAP_NETMASK_UNKNOWN 0
|
||||
#endif
|
||||
|
||||
/* Need this for _WIN32_WINNT below */
|
||||
#include <nbase.h>
|
||||
/* WSAPoll() isn't available before Vista */
|
||||
#if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600)
|
||||
#define HAVE_POLL 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue