From f8e80630796cd65ada70f9bf49a8737cfcd444ca Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 3 Jan 2012 08:40:18 +0100 Subject: [PATCH] Base fgetln() implementation on getline presence instead of glibc --- configure.ac | 2 +- src/fgetln.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index ce697a3..fd8b5d7 100644 --- a/configure.ac +++ b/configure.ac @@ -54,7 +54,7 @@ AC_LINK_IFELSE( AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) -AC_CHECK_FUNCS([dirfd getexecname sysconf]) +AC_CHECK_FUNCS([dirfd getexecname getline sysconf]) AC_CONFIG_FILES([ Makefile diff --git a/src/fgetln.c b/src/fgetln.c index b79584c..87bd2e9 100644 --- a/src/fgetln.c +++ b/src/fgetln.c @@ -30,7 +30,7 @@ #include #include -#ifdef __GLIBC__ +#ifdef HAVE_GETLINE char * fgetln(FILE *stream, size_t *len) { -- 2.47.3