[oe-commits] Ross Burton : site: add xorg_cv_malloc0_returns_null

git at git.openembedded.org git at git.openembedded.org
Sun Dec 15 16:44:57 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: ecbf3f81f6d2929921e57066c2dd327d41d8e286
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=ecbf3f81f6d2929921e57066c2dd327d41d8e286

Author: Ross Burton <ross.burton at intel.com>
Date:   Wed Dec 11 14:04:34 2013 +0000

site: add xorg_cv_malloc0_returns_null

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 at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/site/common-glibc  | 3 +++
 meta/site/common-uclibc | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/meta/site/common-glibc b/meta/site/common-glibc
index dc69703..8329bb3 100644
--- a/meta/site/common-glibc
+++ b/meta/site/common-glibc
@@ -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}
diff --git a/meta/site/common-uclibc b/meta/site/common-uclibc
index 0e3fde0..26fc103 100644
--- a/meta/site/common-uclibc
+++ b/meta/site/common-uclibc
@@ -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}



More information about the Openembedded-commits mailing list