commit 173be77dfcc78c114619535d1b19c3a449af03cd
parent cac2ac13bd99c53ca562157a99befd92ad643a1d
Author: sin <sin@2f30.org>
Date: Wed, 1 Mar 2017 14:51:58 +0000
wifi: Linux also needs sys/ioctl.h
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/wifi.c b/wifi.c
@@ -1,3 +1,5 @@
+#include <sys/ioctl.h>
+
#include <err.h>
#include <ifaddrs.h>
#include <stdio.h>
@@ -28,7 +30,6 @@ wifiprint(char *buf, size_t len, int quality)
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
-#include <sys/ioctl.h>
#include <net/if.h>
#include <net/if_media.h>