summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-12 18:46:20 +0000
committerJim Meyering <jim@meyering.net>2001-08-12 18:46:20 +0000
commit4911e67aa86c5e6239dc688e45d41fb9a736190d (patch)
treee7f6681e23d28f2f8afffdae7ace60dc1bcf8c46 /src
parent66d5a1209447974959614ecd2044677888da4127 (diff)
downloadcoreutils-4911e67aa86c5e6239dc688e45d41fb9a736190d.tar.xz
Guard the above pathconf-using definitions with `#if HAVE_PATHCONF'
rather than with `#ifdef _POSIX_VERSION'.
Diffstat (limited to 'src')
-rw-r--r--src/pathchk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pathchk.c b/src/pathchk.c
index bba26d5db..e62a3b588 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -58,7 +58,7 @@ extern int errno;
#define AUTHORS "David MacKenzie and Jim Meyering"
-#ifdef _POSIX_VERSION
+#if HAVE_PATHCONF
# ifndef PATH_MAX
# define PATH_MAX_FOR(p) pathconf_wrapper ((p), _PC_PATH_MAX)
# endif /* not PATH_MAX */
@@ -66,7 +66,7 @@ extern int errno;
# define NAME_MAX_FOR(p) pathconf_wrapper ((p), _PC_NAME_MAX);
# endif /* not NAME_MAX */
-#else /* not _POSIX_VERSION */
+#else
# include <sys/param.h>
# ifndef PATH_MAX
@@ -85,7 +85,7 @@ extern int errno;
# endif /* not MAXNAMLEN */
# endif /* not NAME_MAX */
-#endif /* not _POSIX_VERSION */
+#endif
#ifndef _POSIX_PATH_MAX
# define _POSIX_PATH_MAX 255