mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 11:17:37 +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([yes])],
|
||||||
[AC_MSG_RESULT([no])])
|
[AC_MSG_RESULT([no])])
|
||||||
|
|
||||||
AC_CHECK_FUNCS([dirfd getexecname sysconf])
|
AC_CHECK_FUNCS([dirfd getexecname getline sysconf])
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef __GLIBC__
|
#ifdef HAVE_GETLINE
|
||||||
char *
|
char *
|
||||||
fgetln(FILE *stream, size_t *len)
|
fgetln(FILE *stream, size_t *len)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user