Fix pcap_getevent warning
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 19:35:54 +0000 (21:35 +0200)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 19:35:54 +0000 (21:35 +0200)
ethsock.c

index 69c7e36a72aa92d8b81df4f28f0cda4dcb2ac214..2eb8a427b923df1238c3c7b9324cd310f17f5ceb 100644 (file)
--- a/ethsock.c
+++ b/ethsock.c
@@ -3,14 +3,16 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <pcap.h>
 #include "ethsock.h"
 #include "nmrpd.h"
 
 #if defined(NMRPFLASH_WINDOWS)
-#include <windows.h>
 #define NMRPFLASH_ALIAS_PREFIX "net"
+#define WPCAP
+#include <pcap.h>
+#include <windows.h>
 #else
+#include <pcap.h>
 #include <ifaddrs.h>
 #if defined(NMRPFLASH_LINUX)
 #include <linux/if_packet.h>