freebsd: fix warning

pull/61/merge
Eric Leblond 14 years ago committed by Victor Julien
parent 6d55446655
commit 4d2305c0a8

@ -32,6 +32,7 @@
#include "util-profiling-locks.h" #include "util-profiling-locks.h"
#endif #endif
#if defined OS_FREEBSD || __OpenBSD__ #if defined OS_FREEBSD || __OpenBSD__
#if ! defined __OpenBSD__ #if ! defined __OpenBSD__
@ -101,6 +102,8 @@ enum {
/** Get the Current Thread Id */ /** Get the Current Thread Id */
#ifdef OS_FREEBSD #ifdef OS_FREEBSD
#include <pthread_np.h>
#define SCGetThreadIdLong(...) ({ \ #define SCGetThreadIdLong(...) ({ \
long tmpthid; \ long tmpthid; \
thr_self(&tmpthid); \ thr_self(&tmpthid); \

Loading…
Cancel
Save