[gimp] Bug 704980 - uclibc - base-utils.c: execinfo.h: No such file or directory
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 704980 - uclibc - base-utils.c: execinfo.h: No such file or directory
- Date: Sun, 10 Nov 2013 21:10:46 +0000 (UTC)
commit 98cef1273b9e6f71ef47b1828d627ec1b010fcb9
Author: Michael Natterer <mitch gimp org>
Date: Sun Nov 10 22:09:54 2013 +0100
Bug 704980 - uclibc - base-utils.c: execinfo.h: No such file or directory
Forgot to apply the same fix to master.
app/core/gimp-utils.c | 4 ++--
configure.ac | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimp-utils.c b/app/core/gimp-utils.c
index c33958c..5a958a6 100644
--- a/app/core/gimp-utils.c
+++ b/app/core/gimp-utils.c
@@ -38,7 +38,7 @@
#include <process.h>
#endif
-#ifdef G_OS_UNIX
+#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
/* For get_backtrace() */
#include <stdlib.h>
#include <string.h>
@@ -369,7 +369,7 @@ gimp_get_physical_memory_size (void)
gchar *
gimp_get_backtrace (void)
{
-#ifdef G_OS_UNIX
+#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
void *functions[MAX_FUNC];
char **function_names;
int n_functions;
diff --git a/configure.ac b/configure.ac
index 9a31f7f..6eb0e07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -422,7 +422,7 @@ AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
-AC_CHECK_HEADERS(sys/param.h sys/time.h sys/times.h sys/wait.h unistd.h)
+AC_CHECK_HEADERS(execinfo.h sys/param.h sys/time.h sys/times.h sys/wait.h unistd.h)
AC_TYPE_PID_T
AC_FUNC_VPRINTF
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]