1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Update gnulib to a3a946f670718d0dee5a7425ad5ac0a29fb46ea1

This fixes https://lists.gnu.org/archive/html/guile-devel/2021-04/msg00009.html
This commit is contained in:
Daniel Llorens 2021-04-08 20:54:42 +02:00
parent 88e7030845
commit bdb07f8fc7
54 changed files with 1075 additions and 302 deletions

View file

@ -30,7 +30,11 @@
#include <stdlib.h>
#include <errno.h>
/* A function definition is only needed if NEED_MALLOC_GNU is defined above
or if the module 'malloc-posix' requests it. */
#if NEED_MALLOC_GNU || (GNULIB_MALLOC_POSIX && !HAVE_MALLOC_POSIX)
# include <errno.h>
/* Allocate an N-byte block of memory from the heap.
If N is zero, allocate a 1-byte block. */
@ -40,17 +44,19 @@ rpl_malloc (size_t n)
{
void *result;
#if NEED_MALLOC_GNU
# if NEED_MALLOC_GNU
if (n == 0)
n = 1;
#endif
# endif
result = malloc (n);
#if !HAVE_MALLOC_POSIX
# if !HAVE_MALLOC_POSIX
if (result == NULL)
errno = ENOMEM;
#endif
# endif
return result;
}
#endif