only include net/if.h for bsd/osx

This commit is contained in:
walker0643 2018-07-04 16:18:24 -04:00
parent a739ce784a
commit b120fe4d67
1 changed files with 2 additions and 1 deletions

View File

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