summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorDominic Hargreaves <dom@earth.li>2012-02-03 19:35:36 +0000
committerDominic Hargreaves <dom@earth.li>2012-02-18 11:13:26 +0000
commitd552bce808ea3cf98c9a52a7a71427bb62e4c040 (patch)
tree793d542bd2a95b6700d0c59689ee849f1844847f /perl.h
parentb1208b3adf76cfe835203bf9ef350f13d0c8a673 (diff)
downloadperl-d552bce808ea3cf98c9a52a7a71427bb62e4c040.tar.gz
[perl #109262] Don't use _POSIX_PATH_MAX as a fallback PATH_MAX
_POSIX_PATH_MAX is required to be defined for POSIX systems as 256, which is too small for a fallback PATH_MAX (some systems, such as GNU/Hurd, do not have an inherent limit on path length).
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl.h b/perl.h
index 7274503e4c..361bbf69d5 100644
--- a/perl.h
+++ b/perl.h
@@ -2764,11 +2764,7 @@ freeing any remaining Perl interpreters.
# define MAXPATHLEN (PATH_MAX+1)
# endif
# else
-# ifdef _POSIX_PATH_MAX
-# define MAXPATHLEN _POSIX_PATH_MAX
-# else
-# define MAXPATHLEN 1024 /* Err on the large side. */
-# endif
+# define MAXPATHLEN 1024 /* Err on the large side. */
# endif
#endif