diff mbox

[ovs-dev] ovn: fix build on FreeBSD

Message ID 1476891177-6512-1-git-send-email-cascardo@redhat.com
State Accepted
Headers show

Commit Message

Thadeu Lima de Souza Cascardo Oct. 19, 2016, 3:32 p.m. UTC
The missing include was needed for struct in6_addr.

Otherwise, this build failure would occur.

In file included from ovn/lib/actions.c:23:
ovn/lib/ovn-dhcp.h:163:21: error: field has incomplete type 'struct in6_addr'

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
---

Needed for 2.6 branch as well.

---
 ovn/lib/ovn-dhcp.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Ben Pfaff Oct. 19, 2016, 3:46 p.m. UTC | #1
On Wed, Oct 19, 2016 at 01:32:57PM -0200, Thadeu Lima de Souza Cascardo wrote:
> The missing include was needed for struct in6_addr.
> 
> Otherwise, this build failure would occur.
> 
> In file included from ovn/lib/actions.c:23:
> ovn/lib/ovn-dhcp.h:163:21: error: field has incomplete type 'struct in6_addr'
> 
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
> ---
> 
> Needed for 2.6 branch as well.

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

Patch

diff --git a/ovn/lib/ovn-dhcp.h b/ovn/lib/ovn-dhcp.h
index 65a066b..ecfcc03 100644
--- a/ovn/lib/ovn-dhcp.h
+++ b/ovn/lib/ovn-dhcp.h
@@ -17,6 +17,7 @@ 
 #ifndef OVN_DHCP_H
 #define OVN_DHCP_H 1
 
+#include <netinet/in.h>
 #include "openvswitch/hmap.h"
 #include "hash.h"