| author | "Tomas Zeman <tzeman@volny.cz>" |
| Wed, 16 Jan 2008 22:39:43 +0100 | |
| changeset 0 | 6f7a81934006 |
| child 2 | b3afb9f1e801 |
| permissions | -rw-r--r-- |
| 0 | 1 |
#include <sys/types.h> |
2 |
#if HAVE_DIRENT_H |
|
3 |
# include <dirent.h> |
|
4 |
# define NAMLEN(dirent) strlen((dirent)->d_name) |
|
5 |
#else |
|
6 |
# define dirent direct |
|
7 |
# define NAMLEN(dirent) (dirent)->d_namlen |
|
8 |
# if HAVE_SYS_NDIR_H |
|
9 |
# include <sys/ndir.h> |
|
10 |
# endif |
|
11 |
# if HAVE_SYS_DIR_H |
|
12 |
# include <sys/dir.h> |
|
13 |
# endif |
|
14 |
# if HAVE_NDIR_H |
|
15 |
# include <ndir.h> |
|
16 |
# endif |
|
17 |
#endif |