[hackers] [slstatus] wifi: Fix order and add missing header || Aaron Marcher

From: <git_AT_suckless.org>
Date: Thu, 17 May 2018 18:16:26 +0200 (CEST)

commit 977be0cf4f369f586d0606887498066ee0565e2f
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Thu May 17 18:14:08 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Thu May 17 18:14:08 2018 +0200

    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.

diff --git a/components/wifi.c b/components/wifi.c
index 339667f..414d533 100644
--- a/components/wifi.c
+++ b/components/wifi.c
_AT_@ -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"
_AT_@ -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>
Received on Thu May 17 2018 - 18:16:26 CEST

This archive was generated by hypermail 2.3.0 : Thu May 17 2018 - 18:24:37 CEST