configure: Fix test for open_memstream

glibc-2.19 needs the return value testing....
This commit is contained in:
Roy Marples 2019-07-28 12:53:03 +01:00
parent 0b57c47a12
commit 8d8adc107a

3
configure vendored
View File

@ -747,8 +747,7 @@ if [ -z "$OPEN_MEMSTREAM" ]; then
cat <<EOF >_open_memstream.c
#include <stdio.h>
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