NetBSD requires <netinet/in.h> to be included before <netinit/ip6.h>.
Without this fix we have:

In file included from lib/netdev-vport.c:25:0:
/usr/include/netinet/ip6.h:82:18: error: field 'ip6_src' has incomplete type
/usr/include/netinet/ip6.h:83:18: error: field 'ip6_dst' has incomplete type

Signed-off-by: Lance Richardson <[email protected]>
---
 lib/netdev-vport.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c
index 88f5022..c04597c 100644
--- a/lib/netdev-vport.c
+++ b/lib/netdev-vport.c
@@ -22,6 +22,7 @@
 #include <fcntl.h>
 #include <sys/socket.h>
 #include <net/if.h>
+#include <netinet/in.h>
 #include <netinet/ip6.h>
 #include <sys/ioctl.h>
 
-- 
2.6.4

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to