i3 - improved tiling WM


Allow to print eth information on NetBSD

Patch status: merged

Patch by Arnaud Degroote

To apply this patch, use:
curl http://cr.i3wm.org/patch/251/raw.patch | git am

b/src/print_eth_info.c

13
@@ -27,7 +27,7 @@
14
 #define PART_ETHSPEED  "E: %s (%s)"
15
 #endif
16
 
17
-#if defined(__OpenBSD__)
18
+#if defined(__OpenBSD__) || defined(__NetBSD__)
19
 #include <errno.h>
20
 #include <net/if_media.h>
21
 #endif
22
@@ -69,7 +69,7 @@ static int print_eth_speed(char *outwalk, const char *interface) {
23
         }
24
         ethspeed = (desc->ifmt_string != NULL ? desc->ifmt_string : "?");
25
         return sprintf(outwalk, "%s", ethspeed);
26
-#elif defined(__OpenBSD__)
27
+#elif defined(__OpenBSD__) || defined(__NetBSD__)
28
 	char *ethspeed;
29
 	struct ifmediareq ifmr;
30