only include net/if.h for bsd/osx
This commit is contained in:
parent
a739ce784a
commit
b120fe4d67
|
@ -3,10 +3,11 @@
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <net/if.h>
|
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <linux/wireless.h>
|
#include <linux/wireless.h>
|
||||||
|
#else
|
||||||
|
#include <net/if.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
Loading…
Reference in New Issue