void-packages/srcpkgs/capnproto/patches/musl_fix.patch
eater ee140ec9e1 New package: capnproto-0.5.3
Closes #5108 and cleans up the subpackages there
2016-12-07 19:39:04 -05:00

20 lines
695 B
Diff

--- src/kj/exception.c++.fix 2016-11-10 10:30:39.182645852 +0100
+++ src/kj/exception.c++ 2016-11-10 10:30:26.848646578 +0100
@@ -28,7 +28,7 @@
#include <exception>
#include <new>
-#if (__linux__ && !__ANDROID__) || __APPLE__
+#if (__GLIBC__) || __APPLE__
#define KJ_HAS_BACKTRACE 1
#include <execinfo.h>
#endif
@@ -43,7 +43,7 @@
namespace {
String getStackSymbols(ArrayPtr<void* const> trace) {
-#if (__linux__ || __APPLE__) && !__ANDROID__ && defined(KJ_DEBUG)
+#if (__GLIBC__ || __APPLE__) && !__ANDROID__ && defined(KJ_DEBUG)
// We want to generate a human-readable stack trace.
// TODO(someday): It would be really great if we could avoid farming out to another process