aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_thread.h')
-rw-r--r--src/os/unix/ngx_thread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/unix/ngx_thread.h b/src/os/unix/ngx_thread.h
index eb5c33f85..b779de060 100644
--- a/src/os/unix/ngx_thread.h
+++ b/src/os/unix/ngx_thread.h
@@ -22,7 +22,11 @@ typedef pthread_t ngx_tid_t;
#define ngx_thread_self() pthread_self()
#define ngx_log_tid (int) ngx_thread_self()
+#if defined(__FreeBSD__) && !defined(NGX_LINUXTHREADS)
#define TID_T_FMT PTR_FMT
+#else
+#define TID_T_FMT "%d"
+#endif
typedef pthread_key_t ngx_tls_key_t;