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