Resending after some mails were lost du to low space on device...
On Fri, Oct 02, 2015 at 11:04:51PM +0200, Willy Tarreau wrote:
> Hi David,
>
> On Tue, Sep 29, 2015 at 02:53:44PM +0100, David Carlier wrote:
> > Hi,
> > This little patch avoids a build issue on systems different than Linux.
> >
> > Hope it is useful.
>
> Thank you, but I think it should be OK now since I've added the following
> patch a few days ago after I noticed we already had some ifdefs and I
> preferred not to add new ones in the code :
>
>
> commit ae459f3b9f9810d18aaa090264398dee2d4de23b
> Author: Willy Tarreau <[email protected]>
> Date: Tue Sep 29 18:19:32 2015 +0200
>
> BUILD: tcp: use IPPROTO_IP when SOL_IP is not available
>
> Dmitry Sivachenko reported a build failure on FreeBSD due to SOL_IP not
> being defined. IPPROTO_IP must be used there instead.
>
> diff --git a/include/common/compat.h b/include/common/compat.h
> index 07dd01d..b2e16af 100644
> --- a/include/common/compat.h
> +++ b/include/common/compat.h
> @@ -129,6 +129,11 @@
> #endif
> #endif
>
> +/* FreeBSD doesn't define SOL_IP and prefers IPPROTO_IP */
> +#ifndef SOL_IP
> +#define SOL_IP IPPROTO_IP
> +#endif
> +
> /* If IPv6 is supported, define IN6_IS_ADDR_V4MAPPED() if missing. */
> #if defined(IPV6_TCLASS) && !defined(IN6_IS_ADDR_V4MAPPED)
> #define IN6_IS_ADDR_V4MAPPED(a) \
>
> Thanks!
> Willy
>