[tor-commits] [tor/release-0.4.1] backtrace: Add a missing check for HAVE_PTHREAD_H before using mutexes
nickm at torproject.org
nickm at torproject.org
Tue Oct 22 16:14:20 UTC 2019
commit ab7bfdf40402449d6a2214e1dd5bc3fe5bc9a2e7
Author: teor <teor at torproject.org>
Date: Mon Sep 9 11:21:15 2019 +1000
backtrace: Add a missing check for HAVE_PTHREAD_H before using mutexes
Fixes bug 31614; bugfix on 0.2.5.2-alpha.
---
src/lib/err/backtrace.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/err/backtrace.c b/src/lib/err/backtrace.c
index 77dc6b8cb..bf833c162 100644
--- a/src/lib/err/backtrace.c
+++ b/src/lib/err/backtrace.c
@@ -57,7 +57,8 @@
#include "lib/err/torerr.h"
#if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \
- defined(HAVE_BACKTRACE_SYMBOLS_FD) && defined(HAVE_SIGACTION)
+ defined(HAVE_BACKTRACE_SYMBOLS_FD) && defined(HAVE_SIGACTION) && \
+ defined(HAVE_PTHREAD_H)
#define USE_BACKTRACE
#endif
More information about the tor-commits
mailing list