[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.4.1] backtrace: Add a missing check for HAVE_PTHREAD_H before using mutexes



commit ab7bfdf40402449d6a2214e1dd5bc3fe5bc9a2e7
Author: teor <teor@xxxxxxxxxxxxxx>
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
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits