summaryrefslogtreecommitdiff
path: root/openwrt/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-04-29 18:00:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-04-29 18:00:58 +0000
commitf7535d7e7f1d3da40d1ca547fe5fa51c866a8e4b (patch)
treebcac85d4718510613203389f95a39111c3379fcc /openwrt/toolchain
parent6fa75d0b231a679a4eff600147a0cfad2d98710e (diff)
downloadmtk-20170518-f7535d7e7f1d3da40d1ca547fe5fa51c866a8e4b.zip
mtk-20170518-f7535d7e7f1d3da40d1ca547fe5fa51c866a8e4b.tar.gz
mtk-20170518-f7535d7e7f1d3da40d1ca547fe5fa51c866a8e4b.tar.bz2
fix uclibc gcc4 compile
SVN-Revision: 765
Diffstat (limited to 'openwrt/toolchain')
-rw-r--r--openwrt/toolchain/uClibc/patches/gcc4.0-fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/openwrt/toolchain/uClibc/patches/gcc4.0-fix.patch b/openwrt/toolchain/uClibc/patches/gcc4.0-fix.patch
new file mode 100644
index 0000000..1dd50ce
--- /dev/null
+++ b/openwrt/toolchain/uClibc/patches/gcc4.0-fix.patch
@@ -0,0 +1,23 @@
+diff -urN uClibc-0.9.27.old/ldso/include/ldso.h uClibc-0.9.27.dev/ldso/include/ldso.h
+--- uClibc-0.9.27.old/ldso/include/ldso.h 2005-01-12 08:59:21.000000000 +0100
++++ uClibc-0.9.27.dev/ldso/include/ldso.h 2005-04-29 17:44:05.000000000 +0200
+@@ -42,8 +42,6 @@
+ extern char *_dl_preload; /* Things to be loaded before the libs */
+ extern char *_dl_ldsopath; /* Where the shared lib loader was found */
+ extern const char *_dl_progname; /* The name of the executable being run */
+-extern unsigned char *_dl_malloc_addr; /* Lets _dl_malloc use the already allocated memory page */
+-extern unsigned char *_dl_mmap_zero; /* Also used by _dl_malloc */
+ extern int _dl_secure; /* Are we dealing with setuid stuff? */
+ extern size_t _dl_pagesize; /* Store the page size for use later */
+ extern const char *_dl_progname; /* The name of the shared library loader */
+diff -urN uClibc-0.9.27.old/libc/stdlib/malloc-standard/free.c uClibc-0.9.27.dev/libc/stdlib/malloc-standard/free.c
+--- uClibc-0.9.27.old/libc/stdlib/malloc-standard/free.c 2005-01-12 08:59:21.000000000 +0100
++++ uClibc-0.9.27.dev/libc/stdlib/malloc-standard/free.c 2005-04-29 17:46:43.000000000 +0200
+@@ -16,6 +16,7 @@
+
+ #include "malloc.h"
+
++static int __malloc_trim(size_t pad, mstate av);
+
+ /* ------------------------- malloc_trim -------------------------
+ malloc_trim(size_t pad);