1 From 4fb7a436bca3e11abfda8bc23818af0f09714b9d Mon Sep 17 00:00:00 2001
2 From: Michael Natterer <mitch@gimp.org>
3 Date: Fri, 02 Aug 2013 14:50:00 +0000
4 Subject: Bug 704980 - uclibc - base-utils.c: execinfo.h: No such file or directory
6 Apply patch from Amadeusz Slawinski that checks for execinfo.h and
7 builds the code that needs it conditionally.
9 diff --git a/app/base/base-utils.c b/app/base/base-utils.c
10 index 757f58d..44a9e89 100644
11 --- a/app/base/base-utils.c
12 +++ b/app/base/base-utils.c
18 +#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
19 /* For get_backtrace() */
22 @@ -112,7 +112,7 @@ get_physical_memory_size (void)
27 +#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
28 void *functions[MAX_FUNC];
29 char **function_names;
31 diff --git a/configure.ac b/configure.ac
32 index 0bbcbc7..15c7cc6 100644
35 @@ -416,7 +416,7 @@ AC_HEADER_STDC
39 -AC_CHECK_HEADERS(sys/param.h sys/time.h sys/times.h sys/wait.h unistd.h)
40 +AC_CHECK_HEADERS(execinfo.h sys/param.h sys/time.h sys/times.h sys/wait.h unistd.h)