summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-12-11 11:18:53 +0000
committerJim Meyering <jim@meyering.net>2004-12-11 11:18:53 +0000
commitc3ccae892f87a89cfcfa838c290f1ba76b1d80f2 (patch)
tree2a5a62449c896632b1881fbf74e8d6b0ae1ec801 /lib
parent86e1787721e7361c07b10e234b02eb8446b543d9 (diff)
downloadcoreutils-c3ccae892f87a89cfcfa838c290f1ba76b1d80f2.tar.xz
Fail via #error if PATH_MAX is not defined, since
this file is now compiled only on systems that define PATH_MAX.
Diffstat (limited to 'lib')
-rw-r--r--lib/chdir-long.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/chdir-long.c b/lib/chdir-long.c
index cb9b7d725..4525168c3 100644
--- a/lib/chdir-long.c
+++ b/lib/chdir-long.c
@@ -42,11 +42,7 @@
#endif
#ifndef PATH_MAX
-# ifdef MAXPATHLEN
-# define PATH_MAX MAXPATHLEN
-# else
-# error "use this module only if your system defines PATH_MAX"
-# endif
+# error "use this module only if your system defines PATH_MAX"
#endif
/* FIXME: this use of `MIN' is our sole concession to arbitrary limitations.
@@ -65,7 +61,7 @@ struct cd_buf
above, we'll still have to avoid allocating 2^31 bytes on
systems that define PATH_MAX to very large number.
Ideally, we'd allocate enough to deal with most names, and
- dynamically increase the buffer size only necessary. */
+ dynamically increase the buffer size only when necessary. */
char buffer[MAX_COMPONENT_LENGTH + 1];
char *avail;
int fd;