[hackers] [slstatus] wifi: OS split || Quentin Rameau

From: <git_AT_suckless.org>
Date: Mon, 30 Apr 2018 15:44:42 +0200 (CEST)

commit 97ff66522c098ddd8f0c106deae1c5065cdb5920
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon Apr 30 15:14:39 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Mon Apr 30 15:42:16 2018 +0200

    wifi: OS split

diff --git a/Makefile b/Makefile
index 067ef57..7d80893 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -25,7 +25,7 @@ COM =\
         components/$(OS)/uptime \
         components/user\
         components/volume\
- components/wifi
+ components/$(OS)/wifi
 
 all: slstatus
 
diff --git a/components/wifi.c b/components/Linux/wifi.c
similarity index 97%
rename from components/wifi.c
rename to components/Linux/wifi.c
index 388a30d..e86fcbc 100644
--- a/components/wifi.c
+++ b/components/Linux/wifi.c
_AT_@ -1,5 +1,4 @@
 /* See LICENSE file for copyright and license details. */
-#if defined(__linux__)
 #include <errno.h>
 #include <ifaddrs.h>
 #include <linux/wireless.h>
_AT_@ -10,7 +9,7 @@
 #include <sys/ioctl.h>
 #include <unistd.h>
 
-#include "../util.h"
+#include "../../util.h"
 
 const char *
 wifi_perc(const char *iface)
_AT_@ -89,4 +88,3 @@ wifi_essid(const char *iface)
         else
                 return id;
 }
-#endif
diff --git a/components/OpenBSD/wifi.c b/components/OpenBSD/wifi.c
new file mode 100644
index 0000000..e69de29
Received on Mon Apr 30 2018 - 15:44:42 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 30 2018 - 15:49:25 CEST