projects
/
runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for stacktrace compiled SRT for apps using the SRT.
[runtime.git]
/
lib
/
silcutil
/
stacktrace.h
diff --git
a/lib/silcutil/stacktrace.h
b/lib/silcutil/stacktrace.h
index ef4db5d80ca468601b6327ad7e8a980ebcc37372..9463e1205d6d1d9e58af29e7db34376b2e70b1c4 100644
(file)
--- a/
lib/silcutil/stacktrace.h
+++ b/
lib/silcutil/stacktrace.h
@@
-24,7
+24,8
@@
#error "Do not include internal header file directly"
#endif
#error "Do not include internal header file directly"
#endif
-#if defined(__GNUC__) && defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE)
+#if (defined(__GNUC__) && defined(HAVE_EXECINFO_H) && \
+ defined(HAVE_BACKTRACE)) || defined(__SILC_ENABLE_STACKTRACE)
#undef strdup
#define silc_malloc(s) silc_st_malloc((s), __FILE__, __LINE__)
#undef strdup
#define silc_malloc(s) silc_st_malloc((s), __FILE__, __LINE__)