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:
451c907
)
Conditionally include sys/socket.h
author
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 09:40:16 +0000
(11:40 +0200)
committer
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 09:40:16 +0000
(11:40 +0200)
ethsock.c
patch
|
blob
|
history
diff --git
a/ethsock.c
b/ethsock.c
index b96c289ea1e7cad37a98ccd0f97603917995418c..784bebac2e5a53b1d78579c1cd5ab246d3899662 100644
(file)
--- a/
ethsock.c
+++ b/
ethsock.c
@@
-1,5
+1,3
@@
-#include <netinet/if_ether.h>
-#include <sys/socket.h>
#include <sys/types.h>
#include <stdbool.h>
#include <string.h>
@@
-23,6
+21,7
@@
#include <winsock2.h>
#include <iphlpapi.h>
#else
+#include <sys/socket.h>
#include <ifaddrs.h>
#if defined(NMRPFLASH_LINUX)
#include <linux/if_packet.h>