From 4d2305c0a87c7c1c825f6a37ac459deb030fa89f Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 7 Sep 2012 13:25:35 +0200 Subject: [PATCH] freebsd: fix warning --- src/threads.h | 3 +++ 1 file changed, 3 insertions(+) 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); \