summaryrefslogtreecommitdiff
path: root/src/print_eth_info.c
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2019-01-23 08:56:40 +0100
committerGitHub <noreply@github.com>2019-01-23 08:56:40 +0100
commita57cdc84e2f38ea99fd464d8b5b6446c769cc545 (patch)
tree48ba736e56b8212d2c3e47cce83864d798e2fa46 /src/print_eth_info.c
parent7efbeeaf6ce9232f7479f76c1c79ff73c0db49e4 (diff)
Switch to autotools (#316)
Diffstat (limited to 'src/print_eth_info.c')
-rw-r--r--src/print_eth_info.c5
1 files changed, 3 insertions, 2 deletions
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 <config.h>
#include <string.h>
#include <limits.h>
#include <stdio.h>
@@ -14,7 +15,7 @@
#include "i3status.h"
-#if defined(LINUX)
+#if defined(__linux__)
#include <linux/ethtool.h>
#include <linux/sockios.h>
#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;