summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-07-28 12:53:03 +0100
committerRoy Marples <roy@marples.name>2019-07-28 12:53:03 +0100
commitfa7f0d1e0a57bfaca49e1cfdc3d292ef1d68001a (patch)
tree6acc79e63f99c157f2675ce2a256375ad9abcc21 /configure
parent79846b358f6ea8d0a6027ee0ba38342a730065b0 (diff)
downloaddhcpcd-fa7f0d1e0a57bfaca49e1cfdc3d292ef1d68001a.tar.xz
configure: Fix test for open_memstream
glibc-2.19 needs the return value testing....
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index d25eec56..50058520 100755
--- a/configure
+++ b/configure
@@ -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