aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-06-04 09:36:31 +0200
committermarha <marha@users.sourceforge.net>2012-06-04 09:36:31 +0200
commitf4e3dfb178bda9de976df8b45750fc81b87dfb7b (patch)
tree5576ec58897e2446239ebef5e75db36766fbb5c4 /include
parentcdb76f76457c170cc61f040aea1a48517488cb46 (diff)
downloadvcxsrv-f4e3dfb178bda9de976df8b45750fc81b87dfb7b.tar.gz
vcxsrv-f4e3dfb178bda9de976df8b45750fc81b87dfb7b.tar.bz2
vcxsrv-f4e3dfb178bda9de976df8b45750fc81b87dfb7b.zip
Only define MAXPATHLEN when not defined yet
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