void-packages/srcpkgs/monero/patches/easylogging.patch

12 lines
637 B
Diff

--- external/easylogging++/easylogging++.h.orig 2019-06-20 10:34:09.991591827 +0200
+++ external/easylogging++/easylogging++.h 2019-06-20 10:35:12.131793176 +0200
@@ -216,7 +216,7 @@
# define ELPP_INTERNAL_INFO(lvl, msg)
#endif // (defined(ELPP_DEBUG_INFO))
#if (defined(ELPP_FEATURE_ALL)) || (defined(ELPP_FEATURE_CRASH_LOG))
-# if (ELPP_COMPILER_GCC && !ELPP_MINGW && !ELPP_OS_OPENBSD && !ELPP_OS_NETBSD && !ELPP_OS_ANDROID)
+# if ( __has_include(<execinfo.h>) && ELPP_COMPILER_GCC && !ELPP_MINGW && !ELPP_OS_OPENBSD && !ELPP_OS_NETBSD && !ELPP_OS_ANDROID)
# define ELPP_STACKTRACE 1
# else
# define ELPP_STACKTRACE 0