From 5e276db583ba94e8e303c8868df52ffcaa0819a4 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Thu, 21 Jul 2011 21:52:04 +0200 Subject: Fix FTBFS on kFreeBSD --- src/print_wireless_info.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/print_wireless_info.c') diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index 3a96b86..511a9ab 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -4,6 +4,8 @@ #ifdef LINUX #include +#else +#define IW_ESSID_MAX_SIZE 32 #endif #include "i3status.h" @@ -140,6 +142,7 @@ static int get_wireless_info(const char *interface, wireless_info_t *info) { close(skfd); return 1; #endif + return 0; } void print_wireless_info(const char *interface, const char *format_up, const char *format_down) { @@ -216,6 +219,7 @@ void print_wireless_info(const char *interface, const char *format_up, const cha walk += strlen("ip"); } +#ifdef LINUX if (BEGINS_WITH(walk+1, "bitrate")) { char buffer[128]; @@ -224,6 +228,7 @@ void print_wireless_info(const char *interface, const char *format_up, const cha printf("%s", buffer); walk += strlen("bitrate"); } +#endif } (void)printf("%s", endcolor()); -- cgit v1.2.3