aboutsummaryrefslogtreecommitdiff
path: root/butl/path.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-02-12 08:23:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-02-12 08:23:21 +0200
commitd2c8cfc1f02b40d3fef5414e5830dd6f1fc20fe9 (patch)
tree8ea90679b5bb157bd14ee1e7df12289f119e383a /butl/path.cxx
parentf092580a0ed0367aca6c492d74601f53a82dac41 (diff)
Fallback to default PATH_MAX of 4096 if one is not defined
Diffstat (limited to 'butl/path.cxx')
-rw-r--r--butl/path.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/butl/path.cxx b/butl/path.cxx
index 2150cce..5b68749 100644
--- a/butl/path.cxx
+++ b/butl/path.cxx
@@ -16,6 +16,12 @@
#include <system_error>
+#ifndef _WIN32
+# ifndef PATH_MAX
+# define PATH_MAX 4096
+# endif
+#endif
+
using namespace std;
namespace butl