mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 11:17:37 +01:00
Base fpurge() implementation on __fpurge presence instead of glibc
This commit is contained in:
parent
f8e8063079
commit
d5d9186937
@ -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 getline sysconf])
|
AC_CHECK_FUNCS([dirfd __fpurge getexecname getline sysconf])
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdio_ext.h>
|
#include <stdio_ext.h>
|
||||||
|
|
||||||
#ifdef __GLIBC__
|
#ifdef HAVE___FPURGE
|
||||||
int
|
int
|
||||||
fpurge(FILE *fp)
|
fpurge(FILE *fp)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user