]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix Windows build.
authorGuy Harris <[email protected]>
Fri, 10 Nov 2017 22:39:12 +0000 (14:39 -0800)
committerGuy Harris <[email protected]>
Fri, 10 Nov 2017 22:39:12 +0000 (14:39 -0800)
tests/filtertest.c

index 746cc9440778994a058a43fc99ffd800442f1d95..e3da64002290b6743a5b3b9b2a67a47deeec12dd 100644 (file)
@@ -44,7 +44,7 @@ The Regents of the University of California.  All rights reserved.\n";
 #include <errno.h>
 #ifdef _WIN32
   #include <winsock2.h>
-  typedef unsigned __int32 in_addr_t;
+  #include <ws2tcpip.h>
 #else
   #include <arpa/inet.h>
 #endif
@@ -238,7 +238,7 @@ main(int argc, char **argv)
                        break;
 
                case 'm': {
-                       in_addr_t addr;
+                       bpf_u_int32 addr;
 
                        switch (inet_pton(AF_INET, optarg, &addr)) {