From: Roy Marples Date: Tue, 8 Nov 2016 23:03:28 +0000 (+0000) Subject: Do somewith with getline result in configure to make it pass. X-Git-Tag: v7.0.0-beta1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7c282d9f7bd63b27e140769a8212d005a6893f7;p=thirdparty%2Fdhcpcd.git Do somewith with getline result in configure to make it pass. --- diff --git a/configure b/configure index bb1f2ea1..27d674f4 100755 --- 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