| author | "Tomas Zeman <tzeman@volny.cz>" |
| Sun, 20 Jan 2008 00:22:09 +0100 | |
| changeset 2 | b3afb9f1e801 |
| parent 0 | 6f7a81934006 |
| permissions | -rw-r--r-- |
| 2 | 1 |
/* $Id: dirent.h 616 2005-08-19 20:11:01Z bruce $ */ |
| 0 | 2 |
#include <sys/types.h> |
3 |
#if HAVE_DIRENT_H |
|
4 |
# include <dirent.h> |
|
5 |
# define NAMLEN(dirent) strlen((dirent)->d_name) |
|
6 |
#else |
|
7 |
# define dirent direct |
|
8 |
# define NAMLEN(dirent) (dirent)->d_namlen |
|
9 |
# if HAVE_SYS_NDIR_H |
|
10 |
# include <sys/ndir.h> |
|
11 |
# endif |
|
12 |
# if HAVE_SYS_DIR_H |
|
13 |
# include <sys/dir.h> |
|
14 |
# endif |
|
15 |
# if HAVE_NDIR_H |
|
16 |
# include <ndir.h> |
|
17 |
# endif |
|
18 |
#endif |