# HG changeset patch # User jwe # Date 786652195 0 # Node ID 41f8acf06573046be31de1a1b133cda68ec4d6f8 # Parent a5b83bace72a4a1b686333bf965d56c4591f1fb1 [project @ 1994-12-05 18:29:46 by jwe] diff -r a5b83bace72a -r 41f8acf06573 src/dirfns.cc --- a/src/dirfns.cc Mon Dec 05 04:05:30 1994 +0000 +++ b/src/dirfns.cc Mon Dec 05 18:29:55 1994 +0000 @@ -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 #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 -#endif /* SYSNDIR */ -#ifdef SYSDIR +#endif +#if defined (HAVE_SYS_DIR_H) #include -#endif /* SYSDIR */ -#ifdef NDIR +#endif +#if defined (HAVE_NDIR_H) #include -#endif /* NDIR */ -#endif /* not (DIRENT or _POSIX_VERSION) */ +#endif +#endif #include "statdefs.h" #include "procstream.h" diff -r a5b83bace72a -r 41f8acf06573 src/utils.cc --- a/src/utils.cc Mon Dec 05 04:05:30 1994 +0000 +++ b/src/utils.cc Mon Dec 05 18:29:55 1994 +0000 @@ -66,22 +66,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 #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 -#endif /* SYSNDIR */ -#ifdef SYSDIR +#endif +#if defined (HAVE_SYS_DIR_H) #include -#endif /* SYSDIR */ -#ifdef NDIR +#endif +#if defined (HAVE_NDIR_H) #include -#endif /* NDIR */ -#endif /* not (DIRENT or _POSIX_VERSION) */ +#endif +#endif #include "SLStack.h"