Base fpurge() implementation on __fpurge presence instead of glibc

This commit is contained in:
Guillem Jover 2012-01-03 09:08:35 +01:00
parent f8e8063079
commit d5d9186937
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)
{ {