summaryrefslogtreecommitdiff
path: root/plugins/ethernet.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-04 16:43:05 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-04 16:43:05 +0100
commitaca8be4723ea5f08ba98c49eb042477920405fea (patch)
treef0191c4e100b67ee4c3ec4b3e4d4a7a1f4745e4f /plugins/ethernet.c
parentc16fbb9f4c69084d43cbacba834ba2b4b2cc4b17 (diff)
downloadconnman-aca8be4723ea5f08ba98c49eb042477920405fea.tar.gz
connman-aca8be4723ea5f08ba98c49eb042477920405fea.tar.bz2
connman-aca8be4723ea5f08ba98c49eb042477920405fea.zip
Remove unused includes and define IFF_LOWER_UP
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>