fix gcc-4.2.4 when target != avr32
[openwrt/svn-archive/archive.git] / toolchain / gcc / patches / 4.2.4 / 301-missing-execinfo_h.patch
1 Index: gcc-4.2.3/boehm-gc/include/gc.h
2 ===================================================================
3 --- gcc-4.2.3.orig/boehm-gc/include/gc.h 2006-09-18 20:45:08.000000000 +0200
4 +++ gcc-4.2.3/boehm-gc/include/gc.h 2008-05-21 13:45:48.073288722 +0200
5 @@ -502,7 +502,7 @@
6 #if defined(__linux__) || defined(__GLIBC__)
7 # include <features.h>
8 # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
9 - && !defined(__ia64__)
10 + && !defined(__ia64__) && !defined(__UCLIBC__)
11 # ifndef GC_HAVE_BUILTIN_BACKTRACE
12 # define GC_HAVE_BUILTIN_BACKTRACE
13 # endif