From c28952c55505ce09e3cc082ad59692d4977ed26e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 30 Jan 2009 18:38:00 +0100 Subject: lib/replace: check if we have dirfd() Note: we only use this internally and don't replace it by default. metze --- lib/replace/repdir.m4 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/replace/repdir.m4') diff --git a/lib/replace/repdir.m4 b/lib/replace/repdir.m4 index f53a4c2974..fb3f414c95 100644 --- a/lib/replace/repdir.m4 +++ b/lib/replace/repdir.m4 @@ -7,6 +7,9 @@ AC_CACHE_CHECK([for broken readdir],libreplace_cv_READDIR_NEEDED,[ [libreplace_cv_READDIR_NEEDED="assuming not"]) ]) +AC_CHECK_FUNCS(dirfd) +AC_HAVE_DECL(dirfd, [#include ]) + # # try to replace with getdirentries() if needed # -- cgit