From: Roy Marples Date: Wed, 4 May 2016 11:39:37 +0000 (+0000) Subject: Fix reallocarray test X-Git-Tag: v6.11.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d83c719c1f91c27229066cd1217bf2e6ba0381f;p=thirdparty%2Fdhcpcd.git Fix reallocarray test --- diff --git a/configure b/configure index a58335ad..457ff082 100755 --- a/configure +++ b/configure @@ -902,8 +902,8 @@ if [ -z "$REALLOCARRAY" ]; then #include int main(void) { - reallocarray(NULL, 0, 0); - return 0; + void *foo = reallocarray(NULL, 0, 0); + return foo == NULL ? 1 : 0; } EOF if $XCC _reallocarray.c -o _reallocarray 2>&3; then