Mercurial > hg > octave-lyh
diff src/dirfns.cc @ 958:41f8acf06573
[project @ 1994-12-05 18:29:46 by jwe]
author | jwe |
---|---|
date | Mon, 05 Dec 1994 18:29:55 +0000 |
parents | c4860fc15bbe |
children | dfe01093f657 |
line wrap: on
line diff
--- a/src/dirfns.cc +++ b/src/dirfns.cc @@ -52,22 +52,22 @@ // This mess suggested by the autoconf manual. // unistd.h defines _POSIX_VERSION on POSIX.1 systems. -#if defined(DIRENT) || defined(_POSIX_VERSION) +#if defined (HAVE_DIRENT_H) || defined (_POSIX_VERSION) #include <dirent.h> #define NLENGTH(dirent) (strlen((dirent)->d_name)) -#else /* not (DIRENT or _POSIX_VERSION) */ +#else #define dirent direct #define NLENGTH(dirent) ((dirent)->d_namlen) -#ifdef SYSNDIR +#if defined (HAVE_SYS_NDIR_H) #include <sys/ndir.h> -#endif /* SYSNDIR */ -#ifdef SYSDIR +#endif +#if defined (HAVE_SYS_DIR_H) #include <sys/dir.h> -#endif /* SYSDIR */ -#ifdef NDIR +#endif +#if defined (HAVE_NDIR_H) #include <ndir.h> -#endif /* NDIR */ -#endif /* not (DIRENT or _POSIX_VERSION) */ +#endif +#endif #include "statdefs.h" #include "procstream.h"