mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-14 06:55:52 +02:00
Base fgetln() implementation on getline presence instead of glibc
This commit is contained in:
@@ -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
|
||||
|
@@ -30,7 +30,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __GLIBC__
|
||||
#ifdef HAVE_GETLINE
|
||||
char *
|
||||
fgetln(FILE *stream, size_t *len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user