summaryrefslogtreecommitdiff
path: root/plugins/ethernet.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ethernet.c')
-rw-r--r--plugins/ethernet.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 1e797c08..4ef163c6 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -24,13 +24,11 @@
#endif
#include <errno.h>
-#include <unistd.h>
-#include <string.h>
-#include <sys/ioctl.h>
-#include <sys/socket.h>
-#include <linux/if.h>
-#include <linux/netlink.h>
-#include <linux/rtnetlink.h>
+#include <net/if.h>
+
+#ifndef IFF_LOWER_UP
+#define IFF_LOWER_UP 0x10000
+#endif
#include <glib.h>