dd6398f075
i3status is a small program (about 3000 SLOC) for generating a status bar for dzen2, xmobar or similar programs. It is designed to be very efficient by issuing a very small number of system calls, as one generally wants to update such a status line every second. This ensures that even under high load, your status bar is updated correctly. Also, it saves a bit of energy by not hogging your CPU as much as spawning the corresponding amount of shell commands would. Originally packaged in pkgsrc-wip by: - Pierre Allegraud, - Vitaly Shevtsov, - Niclas Rosenvik, - Mateusz Poszwa, - myself, with maintanance commits by: - Aleksej Saushev.
19 lines
477 B
C
19 lines
477 B
C
$NetBSD: patch-src_print__wireless__info.c,v 1.1 2016/06/14 06:39:37 kamil Exp $
|
|
|
|
Add support for NetBSD.
|
|
|
|
--- src/print_wireless_info.c.orig 2016-01-01 18:51:19.000000000 +0000
|
|
+++ src/print_wireless_info.c
|
|
@@ -52,6 +52,12 @@
|
|
#include <net80211/ieee80211_ioctl.h>
|
|
#endif
|
|
|
|
+#ifdef __NetBSD__
|
|
+#include <unistd.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)
|