]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_FUNC_MALLOC now guesses yes when cross-compiling
authorBruno Haible <bruno@clisp.org>
Fri, 1 Nov 2024 00:19:21 +0000 (17:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Nov 2024 00:20:03 +0000 (17:20 -0700)
The only platform that had this problem was native Windows,
and MSVC's malloc sets errno since 2015 at least.

* lib/autoconf/functions.m4 (AC_FUNC_MALLOC): Guess yes when
cross-compiling.

lib/autoconf/functions.m4

index 23a0bf8a18bed0af239f30889072670ecf690e6a..c12e198774f4838f52f525fb452b1d7f8b7d89f2 100644 (file)
@@ -1020,7 +1020,7 @@ AC_DEFUN([AC_FUNC_MALLOC],
    AC_LIBOBJ(malloc)
    AC_DEFINE([malloc], [rpl_malloc],
       [Define to rpl_malloc if the replacement function should be used.])],
-  ["guessing no"])
+  ["guessing yes"])
 ])# AC_FUNC_MALLOC