Conditionally include sys/socket.h

This commit is contained in:
Joseph C. Lehner 2016-02-02 11:40:16 +02:00
parent 451c907dba
commit 7fcca928fb

View file

@ -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>