FreeBSD: Fix build failure.
authorAlex Wang <alexw@nicira.com>
Sun, 4 Jan 2015 00:09:07 +0000 (16:09 -0800)
committerAlex Wang <alexw@nicira.com>
Mon, 5 Jan 2015 05:00:15 +0000 (21:00 -0800)
This commit fixes an include dependency for header ip6.h, on
FreeBSD.  Without this commit, the gmake of ovs master on
FreeBSD will result in the following error.

/usr/include/netinet/ip6.h:82: error: field 'ip6_src' has incomplete type
/usr/include/netinet/ip6.h:83: error: field 'ip6_dst' has incomplete type

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/odp-execute.c

index 720d24e..9ff418d 100644 (file)
@@ -18,6 +18,7 @@
 #include <config.h>
 #include "odp-execute.h"
 #include <arpa/inet.h>
+#include <netinet/in.h>
 #include <netinet/ip6.h>
 #include <stdlib.h>
 #include <string.h>