summaryrefslogtreecommitdiff
path: root/components/wifi.c
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-05-17 18:14:08 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-17 18:14:08 +0200
commit977be0cf4f369f586d0606887498066ee0565e2f (patch)
tree002505f1641cf461e2e8b9927c82096385ba9d51 /components/wifi.c
parentca8a146f03622149fbf9378e72b6ca02f25c5e55 (diff)
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.
Diffstat (limited to 'components/wifi.c')
-rw-r--r--components/wifi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/wifi.c b/components/wifi.c
index 339667f..414d533 100644
--- a/components/wifi.c
+++ b/components/wifi.c
@@ -3,8 +3,8 @@
#include <ifaddrs.h>
#include <stdio.h>
#include <string.h>
-#include <sys/socket.h>
#include <sys/ioctl.h>
+#include <sys/socket.h>
#include <unistd.h>
#include "../util.h"
@@ -97,6 +97,7 @@
#include <net/if.h>
#include <net/if_media.h>
#include <net80211/ieee80211.h>
+ #include <sys/select.h> /* before <sys/ieee80211_ioctl.h> for NBBY */
#include <net80211/ieee80211_ioctl.h>
#include <stdlib.h>
#include <sys/types.h>