lib/replace: check if we have dirfd()
authorStefan Metzmacher <metze@samba.org>
Fri, 30 Jan 2009 17:38:00 +0000 (18:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 30 Jan 2009 17:42:08 +0000 (18:42 +0100)
Note: we only use this internally and don't replace it by default.

metze

lib/replace/repdir.m4

index f53a4c297455d9cadc0c3df846f91fe1c9c18124..fb3f414c95b57ee0c76369f1b0fdf5c600245594 100644 (file)
@@ -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
 #