1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00
This commit is contained in:
Jim Meyering
1994-10-02 02:09:38 +00:00
parent b055972c6b
commit f17c045d21
24 changed files with 109 additions and 323 deletions

View File

@@ -34,24 +34,24 @@
#include <unistd.h>
#endif
#ifdef DIRENT
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#define NLENGTH(direct) (strlen((direct)->d_name))
#else /* not DIRENT */
#else /* not HAVE_DIRENT_H */
#define dirent direct
#define NLENGTH(direct) ((direct)->d_namlen)
#ifdef SYSNDIR
#ifdef HAVE_SYS_NDIR_H
#include <sys/ndir.h>
#endif /* SYSNDIR */
#ifdef SYSDIR
#endif /* HAVE_SYS_NDIR_H */
#ifdef HAVE_SYS_DIR_H
#include <sys/dir.h>
#endif /* SYSDIR */
#ifdef NDIR
#endif /* HAVE_SYS_DIR_H */
#ifdef HAVE_NDIR_H
#include <ndir.h>
#endif /* NDIR */
#endif /* DIRENT */
#endif /* HAVE_NDIR_H */
#endif /* HAVE_DIRENT_H */
#ifdef VOID_CLOSEDIR
#ifdef CLOSEDIR_VOID
/* Fake a return value. */
#define CLOSEDIR(d) (closedir (d), 0)
#else