1 /* Wrapper around the ugly dir includes/ifdefs */
4 #if defined(HAVE_DIRENT_H)
6 # define NLENGTH(dirent) (strlen(dirent->d_name))
9 # define NLENGTH(dirent) (dirent->d_namlen)
10 # ifdef HAVE_SYS_NDIR_H
11 # include <sys/ndir.h>
12 # endif /* HAVE_SYS_NDIR_H */
13 # ifdef HAVE_SYS_DIR_H
15 # endif /* HAVE_SYSDIR_H */
18 # endif /* HAVE_NDIR_H */
19 #endif /* HAVE_DIRENT_H */
21 #ifdef OPENDIR_DOES_NONDIR
22 extern DIR *ksh_opendir
ARGS((const char *d
));
23 #else /* OPENDIR_DOES_NONDIR */
24 # define ksh_opendir(d) opendir(d)
25 #endif /* OPENDIR_DOES_NONDIR */