mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 03:08:38 +01:00
Base fgetln() implementation on getline presence instead of glibc
This commit is contained in:
parent
786d143920
commit
f8e8063079
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user