aports/main/cmake/fix-execinfo.h-detection.patch

12 lines
403 B
Diff

--- cmake-2.8.11.2/Source/kwsys/SystemInformation.cxx
+++ cmake-2.8.11.2/Source/kwsys/SystemInformation.cxx
@@ -130,7 +130,7 @@
# define KWSYS_SYSTEMINFORMATION_IMPLEMENT_FQDN
# endif
# endif
-# if defined(__GNUC__)
+# if defined(__GNUC__) && defined(__GLIBC__)
# include <execinfo.h>
# if !(defined(__LSB_VERSION__) && __LSB_VERSION__ < 41)
# define KWSYS_SYSTEMINFORMATION_HAVE_BACKTRACE