From a57cdc84e2f38ea99fd464d8b5b6446c769cc545 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 23 Jan 2019 08:56:40 +0100 Subject: Switch to autotools (#316) --- src/print_eth_info.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/print_eth_info.c') diff --git a/src/print_eth_info.c b/src/print_eth_info.c index f3cab7e..f9e63da 100644 --- a/src/print_eth_info.c +++ b/src/print_eth_info.c @@ -1,4 +1,5 @@ // vim:ts=4:sw=4:expandtab +#include #include #include #include @@ -14,7 +15,7 @@ #include "i3status.h" -#if defined(LINUX) +#if defined(__linux__) #include #include #define PART_ETHSPEED "E: %s (%d Mbit/s)" @@ -32,7 +33,7 @@ #endif static int print_eth_speed(char *outwalk, const char *interface) { -#if defined(LINUX) +#if defined(__linux__) int ethspeed = 0; struct ifreq ifr; struct ethtool_cmd ecmd; -- cgit v1.2.3