diff options
author | marha <marha@users.sourceforge.net> | 2012-06-04 09:36:31 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-06-04 09:36:31 +0200 |
commit | f4e3dfb178bda9de976df8b45750fc81b87dfb7b (patch) | |
tree | 5576ec58897e2446239ebef5e75db36766fbb5c4 | |
parent | cdb76f76457c170cc61f040aea1a48517488cb46 (diff) | |
download | vcxsrv-f4e3dfb178bda9de976df8b45750fc81b87dfb7b.tar.gz vcxsrv-f4e3dfb178bda9de976df8b45750fc81b87dfb7b.tar.bz2 vcxsrv-f4e3dfb178bda9de976df8b45750fc81b87dfb7b.zip |
Only define MAXPATHLEN when not defined yet
-rw-r--r-- | include/sys/param.h | 6 |
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 |