[uClibc] small patch for malloc-simple in uclibc-0.9.26

( Marc A. Lehmann ) pcg at goof.com
Fri Apr 30 09:52:31 UTC 2004


Attached is a minor patch that was needed for a clean compile when
malloc-simple was in use (EOMEM and __set_errno were not undeclared).

HTH,

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       pcg at goof.com      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |
-------------- next part --------------
? extra/gcc-uClibc/gcc-uClibc.h
? extra/gcc-uClibc/i386-uclibc-gcc
? extra/gcc-uClibc/i386-uclibc-ld
? ldso/util/ldd
? libc/unistd/sysconf_i386.c
? libc/unistd/sysconf_src.c
Index: libc/stdlib/malloc-simple/alloc.c
===================================================================
RCS file: /var/cvs/uClibc/libc/stdlib/malloc-simple/alloc.c,v
retrieving revision 1.13
diff -u -p -r1.13 alloc.c
--- a/libc/stdlib/malloc-simple/alloc.c	30 Dec 2003 10:40:49 -0000	1.13
+++ b/libc/stdlib/malloc-simple/alloc.c	30 Apr 2004 09:18:32 -0000
@@ -13,7 +13,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/mman.h>
-
+#include <errno.h>
 
 #ifdef L_malloc
 void *malloc(size_t size)


More information about the uClibc mailing list