Remove unused includes and define IFF_LOWER_UP
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 4 Jan 2009 15:43:05 +0000 (16:43 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 4 Jan 2009 15:43:05 +0000 (16:43 +0100)
plugins/ethernet.c

index 1e797c0..4ef163c 100644 (file)
 #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>