summaryrefslogtreecommitdiffstats
path: root/package/capnproto/0001-Do-not-use-execinfo-h-with-uclibc.patch
blob: 6bb7702a58ac746c4c5ddc0ef926434ccddd8139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From e651ac5febc59e3e2b5d3365ededbe5362756da2 Mon Sep 17 00:00:00 2001
From: Koen Martens <gmc@sonologic.nl>
Date: Wed, 12 Jul 2017 18:49:32 +0200
Subject: [PATCH] Do not use execinfo.h with uclibc (#511)

Upstream commit: https://github.com/capnproto/capnproto/commit/e651ac5febc59e3e2b5d3365ededbe5362756da2

Signed-off-by: Koen Martens <gmc@sonologic.nl>
Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com>

---
 c++/src/kj/exception.c++ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c++/src/kj/exception.c++ b/c++/src/kj/exception.c++
index 218f1db..339601a 100644
--- a/c++/src/kj/exception.c++
+++ b/c++/src/kj/exception.c++
@@ -33,7 +33,7 @@
 #endif
 #include "io.h"
 
-#if (__linux__ && __GLIBC__) || __APPLE__
+#if (__linux__ && __GLIBC__ && !__UCLIBC__) || __APPLE__
 #define KJ_HAS_BACKTRACE 1
 #include <execinfo.h>
 #endif
-- 
2.7.4

OpenPOWER on IntegriCloud