Add gnulib modules calloc-posix, malloc-posix, realloc-posix

* autogen.sh: Add gnulib modules calloc-posix, malloc-posix, realloc-posix
* configure.ac: Remove two comment lines
* libwget/xalloc.c: Remove rpl_malloc() and rpl_realloc()
This commit is contained in:
Tim Rühsen
2016-01-12 17:17:24 +01:00
parent 69d1b3392c
commit 2ff0ba9852
3 changed files with 3 additions and 12 deletions

View File

@ -35,6 +35,7 @@ accept
bind
c-strcase
c-ctype
calloc-posix
clock-time
close
connect
@ -51,6 +52,7 @@ glob
iconv
inttypes
listen
malloc-posix
nanosleep
netdb
netinet_in
@ -60,6 +62,7 @@ poll
pwrite
qsort_r
read
realloc-posix
send
sendto
servent

View File

@ -364,9 +364,7 @@ AC_C_INLINE
# Checks for library functions.
AC_FUNC_FORK
#AC_FUNC_MALLOC
AC_FUNC_MMAP
#AC_FUNC_REALLOC
AC_CHECK_FUNCS([\
memchr memmove memset mkdir munmap strchr strerror strrchr strstr strlcpy vasprintf])

View File

@ -139,13 +139,3 @@ void *wget_realloc(void *ptr, size_t size)
*p = NULL;
}
}*/
void *rpl_malloc (size_t n)
{
return malloc (n ? n : 1);
}
void *rpl_realloc (void *ptr, size_t n)
{
return realloc (ptr, n ? n : 1);
}