summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-30 18:38:00 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-30 18:42:08 +0100
commitc28952c55505ce09e3cc082ad59692d4977ed26e (patch)
tree43c906e1af05f4e4f2eb00ac298a774ebc97bd10
parent24a1b556fc0296c289a0a83fafc7815fff528cfb (diff)
downloadsamba-c28952c55505ce09e3cc082ad59692d4977ed26e.tar.gz
samba-c28952c55505ce09e3cc082ad59692d4977ed26e.tar.bz2
samba-c28952c55505ce09e3cc082ad59692d4977ed26e.zip
lib/replace: check if we have dirfd()
Note: we only use this internally and don't replace it by default. metze
-rw-r--r--lib/replace/repdir.m43
1 files changed, 3 insertions, 0 deletions
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 <dirent.h>])
+
#
# try to replace with getdirentries() if needed
#