]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Base fgetln() implementation on getline presence instead of glibc
authorGuillem Jover <guillem@hadrons.org>
Tue, 3 Jan 2012 07:40:18 +0000 (08:40 +0100)
committerGuillem Jover <guillem@hadrons.org>
Tue, 29 May 2012 02:51:04 +0000 (04:51 +0200)
configure.ac
src/fgetln.c

index ce697a32b61c9fdcc603c675cf4e4da28edb1f4c..fd8b5d76ece679a4f59f3ae9b6652055b655752b 100644 (file)
@@ -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
index b79584c886cbb034dba153b2b5e3ba1f62a5b019..87bd2e95b7ce0ab09bb3c3c004727f3034e3d842 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/types.h>
 #include <string.h>
 
-#ifdef __GLIBC__
+#ifdef HAVE_GETLINE
 char *
 fgetln(FILE *stream, size_t *len)
 {