mirror of
https://gitlab.com/gnuwget/wget2.git
synced 2026-02-01 14:41:08 +00:00
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:
@ -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
|
||||
|
||||
@ -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])
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user