aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sys/param.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/param.h b/include/sys/param.h
index 577f415a0..d03021a1e 100644
--- a/include/sys/param.h
+++ b/include/sys/param.h
@@ -1,6 +1,12 @@
#ifndef __PARAM_H__
#define __PARAM_H__
+#ifndef MAXPATHLEN
+#ifdef PATH_MAX
+#define MAXPATHLEN PATH_MAX
+#else
#define MAXPATHLEN 255
+#endif
+#endif
#endif \ No newline at end of file