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 f42f3e5a27dbfc1f329580b9d26bdc0cfd0b8c6e..28567dc876025c953645b6f87f8895b2e1913156 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"