diff options
author | Arnaud Degroote <degroote@NetBSD.org> | 2013-10-06 18:13:05 +0000 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-10-07 19:30:51 +0200 |
commit | cf2fb619110bd3f3d161b081e4b18c346a75eb94 (patch) | |
tree | 609b136e41b3d9fa8e8248bce17f3174b3c3aa20 /src | |
parent | 57730f726f3c824e633bc7eda35d679a3484fcbb (diff) |
Allow to print eth information on NetBSD
Diffstat (limited to 'src')
-rw-r--r-- | src/print_eth_info.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <errno.h> #include <net/if_media.h> #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; |