From 7e2408d27380be6031cb6c45ab4b62a378668f3a Mon Sep 17 00:00:00 2001 From: William Metcalf Date: Sun, 20 Dec 2009 21:29:54 -0600 Subject: [PATCH] FreeBSD correct arch specific gettid defs --- src/util-debug-filters.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/util-debug-filters.h b/src/util-debug-filters.h index 1a9acd845d..b60cce9b24 100644 --- a/src/util-debug-filters.h +++ b/src/util-debug-filters.h @@ -13,8 +13,12 @@ */ #ifdef OS_FREEBSD #ifndef SYS_gettid -#define SYS_gettid 1105 -#endif +#if __i386__ +#define SYS_gettid 224 +#elif __amd64__ +#define SYS_gettid 186 +#endif /* cpu arch */ +#endif /* SYS_gettid */ #endif /* OS_FREEBSD */ /**