aports/testing/monero/easylogging.patch
2017-06-22 00:52:32 +02:00

12 lines
422 B
Diff

--- a/external/easylogging++/easylogging++.h
+++ b/external/easylogging++/easylogging++.h
@@ -195,7 +195,7 @@
# define ELPP_INTERNAL_INFO(lvl, msg)
#endif // (defined(ELPP_DEBUG_INFO))
#if defined(ELPP_STACKTRACE_ON_CRASH)
-# if (ELPP_COMPILER_GCC && !ELPP_MINGW)
+# if (__has_include(<execinfo.h>) && ELPP_COMPILER_GCC && !ELPP_MINGW)
# define ELPP_STACKTRACE 1
# else
# define ELPP_STACKTRACE 0