diff options
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index d9a20a9..565e8fe 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1199,10 +1199,14 @@ std::string cmSystemTools::CollapseFullPath(const char* in_name) # ifdef MAXPATHLEN char resolved_name[MAXPATHLEN]; # else +# ifdef PATH_MAX char resolved_name[PATH_MAX]; +# else + char resolved_name[5024]; +# endif # endif - realpath(in_name, resolved_name); - return resolved_name; + realpath(in_name, resolved_name); + return resolved_name; #endif } |