aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-02-12 09:12:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-02-12 09:12:57 +0200
commitbca10c3106b5945203baa300f0a260185deb1c4d (patch)
tree4d53505d14cf718105e1405b92937975c3150146
parent4b521ea90b2b770355ce98916f5499d57db7c2f8 (diff)
Add fallback PATH_MAX value of 4096
-rw-r--r--cutl/fs/path.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/cutl/fs/path.cxx b/cutl/fs/path.cxx
index 87b7f5f..b106ea0 100644
--- a/cutl/fs/path.cxx
+++ b/cutl/fs/path.cxx
@@ -11,6 +11,12 @@
# include <unistd.h> // getcwd, chdir
#endif
+#ifndef _WIN32
+# ifndef PATH_MAX
+# define PATH_MAX 4096
+# endif
+#endif
+
#include <cutl/fs/path.hxx>
namespace cutl