]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Base fpurge() implementation on __fpurge presence instead of glibc
authorGuillem Jover <guillem@hadrons.org>
Tue, 3 Jan 2012 08:08:35 +0000 (09:08 +0100)
committerGuillem Jover <guillem@hadrons.org>
Tue, 29 May 2012 02:51:04 +0000 (04:51 +0200)
configure.ac
src/fpurge.c

index fd8b5d76ece679a4f59f3ae9b6652055b655752b..0304f578c7b9285ef1f28f3b43fee15238b21a65 100644 (file)
@@ -54,7 +54,7 @@ AC_LINK_IFELSE(
         AC_MSG_RESULT([yes])],
        [AC_MSG_RESULT([no])])
 
-AC_CHECK_FUNCS([dirfd getexecname getline sysconf])
+AC_CHECK_FUNCS([dirfd __fpurge getexecname getline sysconf])
 
 AC_CONFIG_FILES([
        Makefile
index 051b625472560c462865c22ed8b28899342e1b19..e2483f2f0c39b84a25dcd40f03df0850383558e3 100644 (file)
@@ -28,7 +28,7 @@
 #include <stdio.h>
 #include <stdio_ext.h>
 
-#ifdef __GLIBC__
+#ifdef HAVE___FPURGE
 int
 fpurge(FILE *fp)
 {