diff options
author | teor <teor@torproject.org> | 2019-09-09 11:21:15 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-09-24 13:35:55 +1000 |
commit | ab7bfdf40402449d6a2214e1dd5bc3fe5bc9a2e7 (patch) | |
tree | 26210a0bcbd065d808ec3e8c4ba6d9d6bb064bb0 /src/lib/err/backtrace.c | |
parent | 6b97a5a843341b5ea2a9039bdd5290d524a44cd4 (diff) | |
download | tor-ab7bfdf40402449d6a2214e1dd5bc3fe5bc9a2e7.tar.gz tor-ab7bfdf40402449d6a2214e1dd5bc3fe5bc9a2e7.zip |
backtrace: Add a missing check for HAVE_PTHREAD_H before using mutexes
Fixes bug 31614; bugfix on 0.2.5.2-alpha.
Diffstat (limited to 'src/lib/err/backtrace.c')
-rw-r--r-- | src/lib/err/backtrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/err/backtrace.c b/src/lib/err/backtrace.c index 77dc6b8cbf..bf833c1621 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 |