diff options
author | John Baldwin <jhb@FreeBSD.org> | 2015-10-08 13:20:02 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2015-10-08 13:20:02 -0700 |
commit | 9ebde24df1feec94cdee887fa34e0cfefea8aca0 (patch) | |
tree | 113f9bcecb545d8e7265363833bdd5692497b29e /src/print_wireless_info.c | |
parent | 974f95702efbf1ae15882777d191c7fde99bfb9b (diff) |
Fix build under FreeBSD after recent changes for Linux.
Diffstat (limited to 'src/print_wireless_info.c')
-rw-r--r-- | src/print_wireless_info.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index 4639625..a3ab670 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -65,7 +65,9 @@ typedef struct { int flags; char essid[IW_ESSID_MAX_SIZE + 1]; +#ifdef LINUX uint8_t bssid[ETH_ALEN]; +#endif int quality; int quality_max; int quality_average; @@ -77,6 +79,7 @@ typedef struct { double frequency; } wireless_info_t; +#ifdef LINUX // Like iw_print_bitrate, but without the dependency on libiw. static void print_bitrate(char *buffer, int buflen, int bitrate) { const int kilo = 1e3; @@ -251,6 +254,7 @@ static int gwi_scan_cb(struct nl_msg *msg, void *data) { return NL_SKIP; } +#endif static int get_wireless_info(const char *interface, wireless_info_t *info) { memset(info, 0, sizeof(wireless_info_t)); |