diff --git a/include/common/compat.h b/include/common/compat.h index b2e16af7f..59bc6c7e9 100644 --- a/include/common/compat.h +++ b/include/common/compat.h @@ -29,6 +29,7 @@ #include #include #include +#include #ifndef BITS_PER_INT #define BITS_PER_INT (8*sizeof(int)) @@ -134,6 +135,11 @@ #define SOL_IP IPPROTO_IP #endif +/* same for SOL_TCP */ +#ifndef SOL_TCP +#define SOL_TCP IPPROTO_TCP +#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) \