]> The Tcpdump Group git mirrors - libpcap/commitdiff
Just define NDIS_STATUS_NOT_SUPPORTED directly.
authorGuy Harris <[email protected]>
Sun, 29 Apr 2018 23:32:31 +0000 (16:32 -0700)
committerGuy Harris <[email protected]>
Sun, 29 Apr 2018 23:32:31 +0000 (16:32 -0700)
STATUS_NOT_SUPPORTED is in some Windows headers but not others; if we
include <ntstatus.h> we get #define collisions with <winnt.h>.  Just
give up and define it directly.

pcap-npf.c

index ac2b33bf60c5caec8ded875f8f918a3368700815..4def1f19e2341a333c578ec7112eabf89b241a2c 100644 (file)
@@ -41,8 +41,6 @@
 #include <pcap-int.h>
 #include <pcap/dlt.h>
 
-#include <ntstatus.h>
-
 /* Old-school MinGW have these headers in a different place.
  */
 #if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
@@ -138,7 +136,7 @@ PacketGetMonitorMode(PCHAR AdapterName _U_)
  * So we define them here.
  */
 #define NDIS_STATUS_INVALID_OID                0xc0010017
-#define NDIS_STATUS_NOT_SUPPORTED      STATUS_NOT_SUPPORTED
+#define NDIS_STATUS_NOT_SUPPORTED      0xc00000bb      /* STATUS_NOT_SUPPORTED */
 #define NDIS_STATUS_NOT_RECOGNIZED     0x00010001
 
 static int