]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Do somewith with getline result in configure to make it pass.
authorRoy Marples <roy@marples.name>
Tue, 8 Nov 2016 23:05:05 +0000 (23:05 +0000)
committerRoy Marples <roy@marples.name>
Tue, 8 Nov 2016 23:05:05 +0000 (23:05 +0000)
configure

index 0bb936241b6f1a372548646bcda3c4a42b2c9a10..5492efdf1c74418839b928b14afb5574ee8fb382 100755 (executable)
--- a/configure
+++ b/configure
@@ -723,8 +723,7 @@ if [ -z "$GETLINE" ]; then
 int main(void) {
        char *buf = NULL;
        size_t n = 0;
-       getline(&buf, &n, stdin);
-       return 0;
+       return getline(&buf, &n, stdin) == -1 ? -1 : 0;
 }
 EOF
        if $XCC _getline.c -o _getline 2>&3; then