From: Stefan Metzmacher Date: Fri, 30 Jan 2009 17:38:00 +0000 (+0100) Subject: lib/replace: check if we have dirfd() X-Git-Tag: samba-4.0.0alpha7~417^2~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c28952c55505ce09e3cc082ad59692d4977ed26e;p=thirdparty%2Fsamba.git lib/replace: check if we have dirfd() Note: we only use this internally and don't replace it by default. metze --- diff --git a/lib/replace/repdir.m4 b/lib/replace/repdir.m4 index f53a4c29745..fb3f414c95b 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 #