]> git.sur5r.net Git - openldap/blob - ac/dirent.h
Do not require ac/string.h for lber_pvt.h
[openldap] / ac / dirent.h
1 /* Generic dirent.h */
2
3 #ifndef _AC_DIRENT_H
4 #define _AC_DIRENT_H
5
6 #if HAVE_DIRENT_H
7 # include <dirent.h>
8 # define NAMLEN(dirent) strlen((dirent)->d_name)
9 #else
10 # define dirent direct
11 # define NAMLEN(dirent) (dirent)->d_namlen
12 # if HAVE_SYS_NDIR_H
13 #  include <sys/ndir.h>
14 # endif
15 # if HAVE_SYS_DIR_H
16 #  include <sys/dir.h>
17 # endif
18 # if HAVE_NDIR_H
19 #  include <ndir.h>
20 # endif
21 #endif
22
23 #endif /* _AC_DIRENT_H */