From: Roy Marples Date: Sun, 28 Jul 2019 11:53:03 +0000 (+0100) Subject: configure: Fix test for open_memstream X-Git-Tag: v8.0.2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d8adc107a791a7817c0d8d2e4c2024bdb7218ea;p=thirdparty%2Fdhcpcd.git configure: Fix test for open_memstream glibc-2.19 needs the return value testing.... --- diff --git a/configure b/configure index d25eec56..50058520 100755 --- a/configure +++ b/configure @@ -747,8 +747,7 @@ if [ -z "$OPEN_MEMSTREAM" ]; then cat <_open_memstream.c #include int main(void) { - open_memstream(NULL, NULL); - return 0; + return open_memstream(NULL, NULL) != NULL ? 0 : 1; } EOF if $XCC _open_memstream.c -o _open_memstream 2>&3; then