Conditionally include sys/socket.h
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 09:40:16 +0000 (11:40 +0200)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 2 Feb 2016 09:40:16 +0000 (11:40 +0200)
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>