]> code.ossystems Code Review - openembedded-core.git/commitdiff
site: add xorg_cv_malloc0_returns_null
authorRoss Burton <ross.burton@intel.com>
Wed, 11 Dec 2013 14:04:34 +0000 (14:04 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Dec 2013 09:09:32 +0000 (09:09 +0000)
util-macros 1.18 will look in the autoconf cache for this value so instead of
using overrides in xorg-lib-common, use the per-libc site cache.

Alert readers may notice that the site file claims that glibc returns NULL from
malloc(), when the previous change (e628c8aba0189de30de2833882b9999ff3b6547a)
claimed that it didn't.  The previous change was incorrect, whilst malloc(0)
returns a valid pointer, realloc(p,0) does in fact return NULL, so the Xlib
wrapper functions are needed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/site/common-glibc
meta/site/common-uclibc

index dc69703eec15a4bd6fc34152dabadb39aeb02419..8329bb3e15adc5239addfe381125e421ab5d4c66 100644 (file)
@@ -80,3 +80,6 @@ ac_cv_va_copy=${ac_cv_va_copy=yes}
 ac_cv___va_copy=${ac_cv___va_copy=yes}
 ac_cv_func_va_copy=${ac_cv_func_va_copy=yes}
 ac_cv_func___va_copy=${ac_cv_func___va_copy=yes}
+
+# Xorg
+xorg_cv_malloc0_returns_null=${xorg_cv_malloc0_returns_null=yes}
index 0e3fde056d64a887d3f9c8ad8c85135c3b575f11..26fc10331915c8748df2b9e8ba3378fd39f97baf 100644 (file)
@@ -47,3 +47,6 @@ ac_cv_func___va_copy=${ac_cv_func___va_copy=yes}
 ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=yes}
 ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=yes}
 ac_cv_func_posix_getpwnam_r=${ac_cv_func_posix_getpwnam_r=yes}
+
+# Xorg
+xorg_cv_malloc0_returns_null=${xorg_cv_malloc0_returns_null=yes}