]> git.sur5r.net Git - openldap/blob - include/ac/dirent.h
Update configure to:
[openldap] / include / ac / dirent.h
1 /* Generic dirent.h */
2 /*
3  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted only
7  * as authorized by the OpenLDAP Public License.  A copy of this
8  * license is available at http://www.OpenLDAP.org/license.html or
9  * in file LICENSE in the top-level directory of the distribution.
10  */
11
12 #ifndef _AC_DIRENT_H
13 #define _AC_DIRENT_H
14
15 #if HAVE_DIRENT_H
16 # include <dirent.h>
17 # define NAMLEN(dirent) strlen((dirent)->d_name)
18 #else
19 # define dirent direct
20 # define NAMLEN(dirent) (dirent)->d_namlen
21 # if HAVE_SYS_NDIR_H
22 #  include <sys/ndir.h>
23 # endif
24 # if HAVE_SYS_DIR_H
25 #  include <sys/dir.h>
26 # endif
27 # if HAVE_NDIR_H
28 #  include <ndir.h>
29 # endif
30 #endif
31
32 #endif /* _AC_DIRENT_H */