diff --git a/include/common/compat.h b/include/common/compat.h index 14996c8d8..f46006ec9 100644 --- a/include/common/compat.h +++ b/include/common/compat.h @@ -23,6 +23,7 @@ #define _COMMON_COMPAT_H #include +#include #include #include /* This is needed on Linux for Netfilter includes */ @@ -104,6 +105,11 @@ typedef struct { } empty_t; #define F_SETPIPE_SZ (1024 + 7) #endif +/* On FreeBSD we don't have SI_TKILL but SI_LWP instead */ +#if !defined(SI_TKILL) && defined(SI_LWP) +#define SI_TKILL SI_LWP +#endif + /* systems without such defines do not know clockid_t or timer_t */ #if !(_POSIX_TIMERS > 0) #undef clockid_t