[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: Malloc error when cross compiling libXt-1.2.1
From: Thomas Dickey <dickey () his ! com>
Date: 2022-05-19 0:32:26
Message-ID: 20220519003226.GA13156 () prl-debianold-64 ! jexium-island ! net
[Download RAW message or body]
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@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic