mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-29 17:20:38 +02:00
fix uclibc gcc4 compile
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@765 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5068cd22d5
commit
c18c87d255
23
openwrt/toolchain/uClibc/patches/gcc4.0-fix.patch
Normal file
23
openwrt/toolchain/uClibc/patches/gcc4.0-fix.patch
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user