summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/compat/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmtar/compat/compat.h')
-rw-r--r--Utilities/cmtar/compat/compat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Utilities/cmtar/compat/compat.h b/Utilities/cmtar/compat/compat.h
index 880f54b..f308b99 100644
--- a/Utilities/cmtar/compat/compat.h
+++ b/Utilities/cmtar/compat/compat.h
@@ -312,3 +312,12 @@ char *strsep(register char **, register const char *);
#endif
#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
+#endif
+