Malloc error when cross compiling libXt-1.2.1

Thomas Dickey dickey at his.com
Thu May 19 00:32:26 UTC 2022


On Wed, May 18, 2022 at 09:02:47PM -0300, alexandre schenberg wrote:
> Could you explain me how to define it (and where)?

diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index 8d57724..7e16915 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -1395,7 +1395,9 @@ AC_CACHE_VAL([xorg_cv_malloc0_returns_null],
     exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
 ])],
 		[xorg_cv_malloc0_returns_null=yes],
-		[xorg_cv_malloc0_returns_null=no])])
+		[xorg_cv_malloc0_returns_null=no],
+		[xorg_cv_malloc0_returns_null=yes
+		AC_MSG_WARN([assuming malloc(0) returns null])])])
 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
 fi
 AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])

-- 
Thomas E. Dickey <dickey at invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg/attachments/20220518/c05c9b2b/attachment.sig>


More information about the xorg mailing list