aboutsummaryrefslogtreecommitdiffstats
path: root/package/enlightenment/enlightenment-no-execinfo.patch
blob: 81fbe17f789844d694711329eeda7b67f1491cb8 (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
Do not include <execinfo.h> when not available

On uClibc, <execinfo.h> is not necessarily installed, depending on the
configuration. Enlightenment properly makes <execinfo.h> optional, but
uses __GLIBC__ to check if it is available or not. Unfortunately,
uClibc defines __GLIBC__, so it is not the right way to decide if
<execinfo.h> is available.

Instead, Enlightenment already has a configure.ac check for
execinfo.h, so we simply use the result of this configure.ac check to
decide whether execinfo.h is to be included or not.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Index: b/src/bin/e.h
===================================================================
--- a/src/bin/e.h
+++ b/src/bin/e.h
@@ -92,7 +92,7 @@
 #  include <memcheck.h>
 # endif
 
-# ifdef __GLIBC__
+# ifdef HAVE_EXECINFO_H
 #  include <execinfo.h>
 # endif