From c7c282d9f7bd63b27e140769a8212d005a6893f7 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 8 Nov 2016 23:03:28 +0000 Subject: [PATCH] Do somewith with getline result in configure to make it pass. --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.47.2