projects
/
oweals
/
nmrpflash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ce09f6
)
Fix pcap_getevent warning
author
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 19:35:54 +0000
(21:35 +0200)
committer
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 19:35:54 +0000
(21:35 +0200)
ethsock.c
patch
|
blob
|
history
diff --git
a/ethsock.c
b/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>