diff --git a/src/threads.h b/src/threads.h index 1b3ef04a29..e56326f1ae 100644 --- a/src/threads.h +++ b/src/threads.h @@ -32,6 +32,7 @@ #include "util-profiling-locks.h" #endif + #if defined OS_FREEBSD || __OpenBSD__ #if ! defined __OpenBSD__ @@ -101,6 +102,8 @@ enum { /** Get the Current Thread Id */ #ifdef OS_FREEBSD +#include + #define SCGetThreadIdLong(...) ({ \ long tmpthid; \ thr_self(&tmpthid); \