diff --git a/include/common/compat.h b/include/common/compat.h index 07dd01d8c..b2e16af7f 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) \