]> code.ossystems Code Review - openembedded-core.git/commit
xorg-lib-common: fix malloc0returnsnull usage
authorRoss Burton <ross.burton@intel.com>
Tue, 8 Oct 2013 11:23:32 +0000 (11:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Oct 2013 15:54:27 +0000 (16:54 +0100)
commite628c8aba0189de30de2833882b9999ff3b6547a
tree86c091438789b1c8a8fd9104a32d5f68d99dadff
parentb57e7fa8b35cfcf9af6ca72d51bdf67e49254ac2
xorg-lib-common: fix malloc0returnsnull usage

Xorg libraries that use Xmalloc need to know if malloc(0) returns NULL or not,
and as this is a runtime test it can't be checked for.  Previously
xorg-lib-common declared that malloc(0) did return NULL, but this isn't true for
eglibc (only uclibc).

Instead, use libc-specific overrides to pass the relevant option.

(ideally the check would use the autoconf cache so this can be stored in the site files)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/xorg-lib/xorg-lib-common.inc