]> 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:03:28 +0000 (23:03 +0000)
committerRoy Marples <roy@marples.name>
Tue, 8 Nov 2016 23:03:28 +0000 (23:03 +0000)
configure

index bb1f2ea144d367ca5b29f8411a76288897b08298..27d674f4af7f311011fc5b37d31eae83540bea16 100755 (executable)
--- a/configure
+++ b/configure
@@ -738,8 +738,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