diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-16 22:00:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-16 22:00:13 -0400 |
commit | 211b8cc31846e2d2ba75f19ab9f319f18cb70cfb (patch) | |
tree | 5c6b640a83c1a7f453bc4e3488f918056d0a3f1d /src/common/backtrace.h | |
parent | 438a03ef7c1aec6a9a92a74dafe127fa3f52a4e6 (diff) | |
download | tor-211b8cc31846e2d2ba75f19ab9f319f18cb70cfb.tar.gz tor-211b8cc31846e2d2ba75f19ab9f319f18cb70cfb.zip |
Only expose clean_backtrace() if we'll implement it
Fixes windows compilation; bug not in any released Tor.
Bugfix on cc9e86db.
Diffstat (limited to 'src/common/backtrace.h')
-rw-r--r-- | src/common/backtrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/backtrace.h b/src/common/backtrace.h index b1df281659..1f4d73339f 100644 --- a/src/common/backtrace.h +++ b/src/common/backtrace.h @@ -11,8 +11,11 @@ int configure_backtrace_handler(const char *tor_version); void clean_up_backtrace_handler(void); #ifdef EXPOSE_CLEAN_BACKTRACE +#if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \ + defined(HAVE_BACKTRACE_SYMBOLS_FD) && defined(HAVE_SIGACTION) void clean_backtrace(void **stack, int depth, const ucontext_t *ctx); #endif +#endif #endif |