macvlan: turns out netinet/ether.h is needed on some linux systems
authorFelix Fietkau <nbd@openwrt.org>
Mon, 7 Oct 2013 13:47:43 +0000 (15:47 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 7 Oct 2013 13:47:43 +0000 (15:47 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
macvlan.c

index f42f3e5..28567dc 100644 (file)
--- a/macvlan.c
+++ b/macvlan.c
 #include <errno.h>
 #include <net/ethernet.h>
 
+#ifdef linux
+#include <netinet/ether.h>
+#endif
+
 #include "netifd.h"
 #include "device.h"
 #include "interface.h"