summaryrefslogtreecommitdiffhomepage
path: root/device.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-24 10:11:40 -0600
committerFelix Fietkau <nbd@openwrt.org>2011-09-24 10:11:40 -0600
commit3af40a378ec6c76ddac5ec026d2be1be128dc16c (patch)
tree0a207169326a6ab2d800f69d97516d93d4f9f7bb /device.c
parent8e3fc8bfa55fe256ab9520db8df94dae57a1dc28 (diff)
fix a compile error on non-linux systems
Diffstat (limited to 'device.c')
-rw-r--r--device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.c b/device.c
index 8bc8b53..6b333fb 100644
--- a/device.c
+++ b/device.c
@@ -6,7 +6,10 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <net/ethernet.h>
+
+#ifdef linux
#include <netinet/ether.h>
+#endif
#include "netifd.h"
#include "system.h"