855e9872f4b445ecd86284bf56d89bc3b2f7e165
[gentoo.git] / media-gfx / gimp / files / gimp-2.8.6-uclibc.patch
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
5
6 Apply patch from Amadeusz Slawinski that checks for execinfo.h and
7 builds the code that needs it conditionally.
8 ---
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
13 @@ -29,7 +29,7 @@
14  #include <process.h>
15  #endif
16  
17 -#ifdef G_OS_UNIX
18 +#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
19  /* For get_backtrace() */
20  #include <stdlib.h>
21  #include <string.h>
22 @@ -112,7 +112,7 @@ get_physical_memory_size (void)
23  char *
24  get_backtrace (void)
25  {
26 -#ifdef G_OS_UNIX
27 +#if defined(G_OS_UNIX) && defined(HAVE_EXECINFO_H)
28    void     *functions[MAX_FUNC];
29    char    **function_names;
30    int       n_functions;
31 diff --git a/configure.ac b/configure.ac
32 index 0bbcbc7..15c7cc6 100644
33 --- a/configure.ac
34 +++ b/configure.ac
35 @@ -416,7 +416,7 @@ AC_HEADER_STDC
36  AC_HEADER_SYS_WAIT
37  AC_HEADER_TIME
38  
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)
41  
42  AC_TYPE_PID_T
43  AC_FUNC_VPRINTF
44 --
45 cgit v0.9.2