tag 318564 + patch
thanks

Attached is a patch removing two useless declaration in ldso.h 
(functions defined static and not used elsewhere). It also adds a 
static definitons of __malloc_trim in free.c.

Both changes allow the package to build on i386.

Regards,
-- 
Jérémy
diff -ur uclibc-0.9.27/ldso/include/ldso.h uclibc-0.9.27.fixed/ldso/include/ldso.h
--- uclibc-0.9.27/ldso/include/ldso.h	2005-01-12 07:59:21.000000000 +0000
+++ uclibc-0.9.27.fixed/ldso/include/ldso.h	2005-09-10 05:58:06.333007176 +0000
@@ -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 -ur uclibc-0.9.27/libc/stdlib/malloc-standard/free.c uclibc-0.9.27.fixed/libc/stdlib/malloc-standard/free.c
--- uclibc-0.9.27/libc/stdlib/malloc-standard/free.c	2005-01-12 07:59:21.000000000 +0000
+++ uclibc-0.9.27.fixed/libc/stdlib/malloc-standard/free.c	2005-09-10 06:02:31.522692216 +0000
@@ -16,6 +16,7 @@
 
 #include "malloc.h"
 
+static int __malloc_trim(size_t pad, mstate av);
 
 /* ------------------------- malloc_trim -------------------------
   malloc_trim(size_t pad);

Attachment: pgplJN0LehLw3.pgp
Description: PGP signature

Reply via email to