[uClibc-cvs] uClibc/include stdlib.h,1.38,1.39

Erik Andersen andersen at uclibc.org
Sat Jun 14 04:26:01 UTC 2003


Update of /var/cvs/uClibc/include
In directory winder:/tmp/cvs-serv10240/include

Modified Files:
	stdlib.h 
Log Message:
Comment out the rpl_malloc workaround.  It was a good idea, but it violates
namespace guarantees and conflicts with other programs that have used the
AC_FUNC_MALLOC autoconf macro properly.


Index: stdlib.h
===================================================================
RCS file: /var/cvs/uClibc/include/stdlib.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- stdlib.h	27 May 2003 20:13:13 -0000	1.38
+++ stdlib.h	14 Jun 2003 04:25:57 -0000	1.39
@@ -547,6 +547,7 @@
 /* Allocate NMEMB elements of SIZE bytes each, all initialized to 0.  */
 extern void *calloc (size_t __nmemb, size_t __size)
      __THROW __attribute_malloc__;
+#if 0
 /* Cope with autoconf's broken AC_FUNC_MALLOC macro, which
  * redefines malloc to rpl_malloc if it does not detect glibc
  * style returning-a-valid-pointer-for-malloc(0) behavior.  This
@@ -559,6 +560,7 @@
     }
     return malloc(__size);
 }   
+#endif
 #endif
 
 #ifndef __need_malloc_and_calloc



More information about the uClibc-cvs mailing list