[pacman-dev] [PATCH] Remove AC_FUNC_MALLOC check.

Alastair Hughes hobbitalastair at gmail.com
Wed Aug 31 01:13:37 UTC 2016


We weren't supplying the rpl_malloc function needed if this failed, and
didn't check for realloc, so just remove.

Signed-off-by: Alastair Hughes <hobbitalastair at gmail.com>
---

The build will currently fail if cross compiling or if
ac_cv_func_malloc_0_nonnull=no is set, because we don't supply a rpl_malloc
function anywhere. As we don't use AC_FUNC_REALLOC either, just assume that we
will never encounter a buggy system and remove the check.

The other option appears to be to provide a malloc definition somewhere, but in
that case it appears that we should also check for realloc.

I'm unsure which one should be used - opinions?

 configure.ac | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index dd4ac04..f2d3b75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -308,7 +308,6 @@ PATH_MAX_DEFINED
 AC_FUNC_FORK
 AC_FUNC_GETMNTENT
 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
-AC_FUNC_MALLOC
 AC_FUNC_MKTIME
 AC_FUNC_STRCOLL
 AC_CHECK_FUNCS([dup2 getcwd getmntinfo gettimeofday memmove memset \
-- 
2.9.3


More information about the pacman-dev mailing list