From: Arnaud Degroote Date: Sun, 6 Oct 2013 18:13:05 +0000 (+0000) Subject: Allow to print eth information on NetBSD X-Git-Tag: 2.8~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cf2fb619110bd3f3d161b081e4b18c346a75eb94;p=i3%2Fi3status Allow to print eth information on NetBSD --- diff --git a/src/print_eth_info.c b/src/print_eth_info.c index 8af0dec..45a44a4 100644 --- a/src/print_eth_info.c +++ b/src/print_eth_info.c @@ -27,7 +27,7 @@ #define PART_ETHSPEED "E: %s (%s)" #endif -#if defined(__OpenBSD__) +#if defined(__OpenBSD__) || defined(__NetBSD__) #include #include #endif @@ -69,7 +69,7 @@ static int print_eth_speed(char *outwalk, const char *interface) { } ethspeed = (desc->ifmt_string != NULL ? desc->ifmt_string : "?"); return sprintf(outwalk, "%s", ethspeed); -#elif defined(__OpenBSD__) +#elif defined(__OpenBSD__) || defined(__NetBSD__) char *ethspeed; struct ifmediareq ifmr;