lib: Fix netbsd compilation error.
authorLance Richardson <lrichard@redhat.com>
Mon, 15 Feb 2016 15:08:51 +0000 (10:08 -0500)
committerBen Pfaff <blp@ovn.org>
Tue, 23 Feb 2016 21:17:09 +0000 (13:17 -0800)
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 <lrichard@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-vport.c

index 2234de7..df6d8cf 100644 (file)
@@ -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>