diff options
Diffstat (limited to 'package/enlightenment/enlightenment-no-execinfo.patch')
-rw-r--r-- | package/enlightenment/enlightenment-no-execinfo.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/enlightenment/enlightenment-no-execinfo.patch b/package/enlightenment/enlightenment-no-execinfo.patch new file mode 100644 index 000000000..81fbe17f7 --- /dev/null +++ b/package/enlightenment/enlightenment-no-execinfo.patch @@ -0,0 +1,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 + |