summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-11-08 23:03:28 +0000
committerRoy Marples <roy@marples.name>2016-11-08 23:03:28 +0000
commitc7c282d9f7bd63b27e140769a8212d005a6893f7 (patch)
treed3092430c55cd6641d5f7374d559d7749037a015
parenta6c6cb1f4ece0ac672b226f46e45d57d10e95e7a (diff)
downloaddhcpcd-c7c282d9f7bd63b27e140769a8212d005a6893f7.tar.xz
Do somewith with getline result in configure to make it pass.
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 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