fix a compile error on non-linux systems
authorFelix Fietkau <nbd@openwrt.org>
Sat, 24 Sep 2011 16:11:40 +0000 (10:11 -0600)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 24 Sep 2011 16:11:40 +0000 (10:11 -0600)
device.c

index 8bc8b53218c94f16156c606cbd15f5693af5b9aa..6b333fb56938fd71aacaf366b115203194c78655 100644 (file)
--- 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"