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