[uClibc] MALLOC_SIMPLE doesn't build

Erik Andersen andersen at codepoet.org
Wed Jan 14 22:38:50 UTC 2004


On Wed Jan 14, 2004 at 09:57:32PM +0000, Alan Hourihane wrote:
> I needed this patch to build with MALLOC_SIMPLE, because ENOMEM needs
> to be defined.
> 
> Alan.
> 
> --- libc/stdlib/malloc-simple/alloc.c.old	2004-01-14 21:54:07.000000000 +0000
> +++ libc/stdlib/malloc-simple/alloc.c	2004-01-14 21:54:15.000000000 +0000
> @@ -12,6 +12,7 @@
>  #include <stdlib.h>
>  #include <string.h>
>  #include <unistd.h>
> +#include <errno.h>
>  #include <sys/mman.h>

Also there was another rather ugly problem when pthreads are
enabled, the mutex protecting the list of aligned memory blocks
was not initialized.  Both problems in malloc-simple are fixed
now, thanks! 

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list