summaryrefslogtreecommitdiffhomepage
path: root/macvlan.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-10-07 15:47:43 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-10-07 15:47:43 +0200
commit15c26472e9ff09b4bdb3b0ec04a762a3805120ee (patch)
tree8bf46f41911434a673e5fbcacb73dd6fc4b3346f /macvlan.c
parent7a3cfc37189aab8991cfaa7986f221d61127599d (diff)
macvlan: turns out netinet/ether.h is needed on some linux systems
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'macvlan.c')
-rw-r--r--macvlan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/macvlan.c b/macvlan.c
index f42f3e5..28567dc 100644
--- a/macvlan.c
+++ b/macvlan.c
@@ -19,6 +19,10 @@
#include <errno.h>
#include <net/ethernet.h>
+#ifdef linux
+#include <netinet/ether.h>
+#endif
+
#include "netifd.h"
#include "device.h"
#include "interface.h"