From d2c8cfc1f02b40d3fef5414e5830dd6f1fc20fe9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 12 Feb 2016 08:23:21 +0200 Subject: Fallback to default PATH_MAX of 4096 if one is not defined --- butl/path.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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 +#ifndef _WIN32 +# ifndef PATH_MAX +# define PATH_MAX 4096 +# endif +#endif + using namespace std; namespace butl -- cgit v1.1