mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 15:47:10 +00:00
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.
This commit is contained in:
parent
fc2a2d97d6
commit
ae459f3b9f
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user