From: Roy Marples Date: Tue, 8 Nov 2016 23:05:05 +0000 (+0000) Subject: Do somewith with getline result in configure to make it pass. X-Git-Tag: v6.11.6~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b479e7fc957d83e6037114f02e2c118c4778ca90;p=thirdparty%2Fdhcpcd.git Do somewith with getline result in configure to make it pass. --- diff --git a/configure b/configure index 0bb93624..5492efdf 100755 --- 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