3 /* Wrapper around the ugly dir includes/ifdefs */
4 /* $NetBSD: ksh_dir.h,v 1.1.1.1 1996/09/21 23:35:14 jtc Exp $ */
6 #if defined(HAVE_DIRENT_H)
8 # define NLENGTH(dirent) (strlen(dirent->d_name))
10 # define dirent direct
11 # define NLENGTH(dirent) (dirent->d_namlen)
12 # ifdef HAVE_SYS_NDIR_H
13 # include <sys/ndir.h>
14 # endif /* HAVE_SYS_NDIR_H */
15 # ifdef HAVE_SYS_DIR_H
17 # endif /* HAVE_SYSDIR_H */
20 # endif /* HAVE_NDIR_H */
21 #endif /* HAVE_DIRENT_H */
23 #ifdef OPENDIR_DOES_NONDIR
24 extern DIR *ksh_opendir
ARGS((const char *d
));
25 #else /* OPENDIR_DOES_NONDIR */
26 # define ksh_opendir(d) opendir(d)
27 #endif /* OPENDIR_DOES_NONDIR */