diff options
| author | Roy Marples <roy@marples.name> | 2019-07-28 12:53:03 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-07-28 12:53:03 +0100 |
| commit | fa7f0d1e0a57bfaca49e1cfdc3d292ef1d68001a (patch) | |
| tree | 6acc79e63f99c157f2675ce2a256375ad9abcc21 /configure | |
| parent | 79846b358f6ea8d0a6027ee0ba38342a730065b0 (diff) | |
| download | dhcpcd-fa7f0d1e0a57bfaca49e1cfdc3d292ef1d68001a.tar.xz | |
configure: Fix test for open_memstream
glibc-2.19 needs the return value testing....
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |
