diff mbox

[ovs-dev,v2] ovs-router: fix compile error on FreeBSD

Message ID 20151204153140.GA18199@ns.kevlo.org
State Accepted
Headers show

Commit Message

Kevin Lo Dec. 4, 2015, 3:31 p.m. UTC
FreeBSD needs to include netinet/in.h to define struct in6_addr.

Signed-off-by: Kevin Lo <kevlo@FreeBSD.org>
---

Comments

Thadeu Lima de Souza Cascardo Dec. 4, 2015, 3:44 p.m. UTC | #1
On Fri, Dec 04, 2015 at 11:31:40PM +0800, Kevin Lo wrote:
> FreeBSD needs to include netinet/in.h to define struct in6_addr.
> 
> Signed-off-by: Kevin Lo <kevlo@FreeBSD.org>
> ---
> 
> diff --git a/lib/ovs-router.h b/lib/ovs-router.h
> index 315702c..c23d554 100644
> --- a/lib/ovs-router.h
> +++ b/lib/ovs-router.h
> @@ -17,6 +17,8 @@
>  #ifndef OVS_TNL_ROUTER_H
>  #define OVS_TNL_ROUTER_H 1
>  
> +#include <netinet/in.h>
> +
>  #include "util.h"
>  
>  #ifdef  __cplusplus
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev

Acked-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Ben Pfaff Dec. 4, 2015, 4:06 p.m. UTC | #2
On Fri, Dec 04, 2015 at 11:31:40PM +0800, Kevin Lo wrote:
> FreeBSD needs to include netinet/in.h to define struct in6_addr.
> 
> Signed-off-by: Kevin Lo <kevlo@FreeBSD.org>

Thanks, applied to master and branch-2.5.
diff mbox

Patch

diff --git a/lib/ovs-router.h b/lib/ovs-router.h
index 315702c..c23d554 100644
--- a/lib/ovs-router.h
+++ b/lib/ovs-router.h
@@ -17,6 +17,8 @@ 
 #ifndef OVS_TNL_ROUTER_H
 #define OVS_TNL_ROUTER_H 1
 
+#include <netinet/in.h>
+
 #include "util.h"
 
 #ifdef  __cplusplus