git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24a1b55
)
lib/replace: check if we have dirfd()
author
Stefan Metzmacher
<metze@samba.org>
Fri, 30 Jan 2009 17:38:00 +0000
(18:38 +0100)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/lib/replace/repdir.m4
b/lib/replace/repdir.m4
index f53a4c297455d9cadc0c3df846f91fe1c9c18124..fb3f414c95b57ee0c76369f1b0fdf5c600245594 100644
(file)
--- 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
#