diff options
author | Dominic Hargreaves <dom@earth.li> | 2012-02-03 19:35:36 +0000 |
---|---|---|
committer | Dominic Hargreaves <dom@earth.li> | 2012-02-18 11:13:26 +0000 |
commit | d552bce808ea3cf98c9a52a7a71427bb62e4c040 (patch) | |
tree | 793d542bd2a95b6700d0c59689ee849f1844847f /perl.h | |
parent | b1208b3adf76cfe835203bf9ef350f13d0c8a673 (diff) | |
download | perl-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.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |