summaryrefslogtreecommitdiff
path: root/src/print_wireless_info.c
diff options
context:
space:
mode:
authorTommie Gannert <tommie@gannert.se>2016-08-01 14:34:39 +0100
committerTommie Gannert <tommie@gannert.se>2016-08-14 11:52:27 +0100
commit7728cff37044943b05c4f9de5e9c6ef3d9e14a12 (patch)
tree4b0c6dc62f30692624367f9d53fac933fa424f36 /src/print_wireless_info.c
parent185d70ecbb2470468ab34229e6c461094a4cceb8 (diff)
Make print_disk_info, print_eth_info and print_wireless_info compile on NetBSD without warnings.
Diffstat (limited to 'src/print_wireless_info.c')
-rw-r--r--src/print_wireless_info.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c
index 70dbdb4..14879eb 100644
--- a/src/print_wireless_info.c
+++ b/src/print_wireless_info.c
@@ -57,6 +57,12 @@
#define IW_ESSID_MAX_SIZE IEEE80211_NWID_LEN
#endif
+#ifdef __NetBSD__
+#include <sys/types.h>
+#include <net80211/ieee80211.h>
+#define IW_ESSID_MAX_SIZE IEEE80211_NWID_LEN
+#endif
+
#include "i3status.h"
#define WIRELESS_INFO_FLAG_HAS_ESSID (1 << 0)