diff options
Diffstat (limited to 'Utilities/cmtar/compat/compat.h')
-rw-r--r-- | Utilities/cmtar/compat/compat.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Utilities/cmtar/compat/compat.h b/Utilities/cmtar/compat/compat.h index f308b99..ae46f36 100644 --- a/Utilities/cmtar/compat/compat.h +++ b/Utilities/cmtar/compat/compat.h @@ -313,11 +313,13 @@ char *strsep(register char **, register const char *); #define S_ISFIFO(m) (((m)&S_IFFIFO)==S_IFFIFO) #endif -#if defined(PATH_MAX) -# define TAR_MAXPATHLEN PATH_MAX -#elif defined(MAXPATHLEN) -# define TAR_MAXPATHLEN MAXPATHLEN -#else -# define TAR_MAXPATHLEN 16384 +#if !defined(TAR_MAXPATHLEN) +# if defined(PATH_MAX) +# define TAR_MAXPATHLEN PATH_MAX +# elif defined(MAXPATHLEN) +# define TAR_MAXPATHLEN MAXPATHLEN +# else +# define TAR_MAXPATHLEN 16384 +# endif #endif |