wifi: Fix order and add missing header

<sys/select.h> is needed before <net80211/ieee80211_ioctl.h> on OpenBSD
to define NBBY and shut up compiler warnings.
This commit is contained in:
Aaron Marcher 2018-05-17 18:14:08 +02:00
parent ca8a146f03
commit 977be0cf4f

View File

@ -3,8 +3,8 @@
#include <ifaddrs.h> #include <ifaddrs.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <sys/socket.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/socket.h>
#include <unistd.h> #include <unistd.h>
#include "../util.h" #include "../util.h"
@ -97,6 +97,7 @@
#include <net/if.h> #include <net/if.h>
#include <net/if_media.h> #include <net/if_media.h>
#include <net80211/ieee80211.h> #include <net80211/ieee80211.h>
#include <sys/select.h> /* before <sys/ieee80211_ioctl.h> for NBBY */
#include <net80211/ieee80211_ioctl.h> #include <net80211/ieee80211_ioctl.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>