macvlan: turns out netinet/ether.h is needed on some linux systems
[project/netifd.git] / macvlan.c
index bf81340..28567dc 100644 (file)
--- a/macvlan.c
+++ b/macvlan.c
 #include <stdio.h>
 #include <assert.h>
 #include <errno.h>
 #include <stdio.h>
 #include <assert.h>
 #include <errno.h>
+#include <net/ethernet.h>
+
+#ifdef linux
 #include <netinet/ether.h>
 #include <netinet/ether.h>
+#endif
 
 #include "netifd.h"
 #include "device.h"
 
 #include "netifd.h"
 #include "device.h"