diff options
author | Quentin Rameau <quinq@fifth.space> | 2018-04-30 15:14:39 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-04-30 15:42:16 +0200 |
commit | 97ff66522c098ddd8f0c106deae1c5065cdb5920 (patch) | |
tree | 3d493e6035e1c91f2108dbc71e2cf3a3a9cd86b5 /components | |
parent | 19f3c8f545237f9db5e994220f3529b192b4bf39 (diff) |
wifi: OS split
Diffstat (limited to 'components')
-rw-r--r-- | components/Linux/wifi.c (renamed from components/wifi.c) | 4 | ||||
-rw-r--r-- | components/OpenBSD/wifi.c | 0 |
2 files changed, 1 insertions, 3 deletions
diff --git a/components/wifi.c b/components/Linux/wifi.c index 388a30d..e86fcbc 100644 --- a/components/wifi.c +++ b/components/Linux/wifi.c @@ -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> @@ -10,7 +9,7 @@ #include <sys/ioctl.h> #include <unistd.h> -#include "../util.h" +#include "../../util.h" const char * wifi_perc(const char *iface) @@ -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 --- /dev/null +++ b/components/OpenBSD/wifi.c |