[ovs-dev] [PATCH] freebsd: Fix build failure.

Alex Wang alexw at nicira.com
Sun Jan 4 00:12:42 UTC 2015


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 at nicira.com>
---
 lib/odp-execute.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/odp-execute.c b/lib/odp-execute.c
index 720d24e..9ff418d 100644
--- a/lib/odp-execute.c
+++ b/lib/odp-execute.c
@@ -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>
-- 
1.7.9.5




More information about the dev mailing list