[ovs-dev] [PATCH] fix compile error on FreeBSD

Takashi Yamamoto yamamoto at midokura.com
Wed Dec 2 06:47:57 UTC 2015


On Wed, Dec 2, 2015 at 3:21 PM, Kevin Lo <kevlo at freebsd.org> wrote:
> Hi,
>
> Missing a include file caused compile error:
> http://dpaste.com/22E4MHK

why to add it to lib/util.h, rather than ovs-router.c?

>
> FreeBSD (and NetBSD?) needs to include netinet/in.h to define
> struct in6_addr.
>
> Signed-off-by: Kevin Lo <kevlo at FreeBSD.org>
> ---
>
> diff --git a/lib/util.h b/lib/util.h
> index 340ef65..9db65c5 100644
> --- a/lib/util.h
> +++ b/lib/util.h
> @@ -20,6 +20,7 @@
>  #include <arpa/inet.h>
>  #include <inttypes.h>
>  #include <limits.h>
> +#include <netinet/in.h>
>  #include <stdarg.h>
>  #include <stdbool.h>
>  #include <stddef.h>



More information about the dev mailing list