From 3e57a8b69e3dcb5d3708a6a6ace171138076a0ef Mon Sep 17 00:00:00 2001
From: Mark Richardson <mark@elemtech.com>
Date: Thu, 27 Apr 2006 16:02:52 -0400
Subject: [PATCH] COMP: Fixing the the build for windows.

---
 SystemTools.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/SystemTools.cxx b/SystemTools.cxx
index 82c8dc9a..b3afa965 100644
--- a/SystemTools.cxx
+++ b/SystemTools.cxx
@@ -118,12 +118,14 @@ inline int Rmdir(const char* dir)
 }
 inline const char* Getcwd(char* buf, unsigned int len)
 {
-  const char* ret _getcwd(buf, len);
+  const char* ret = _getcwd(buf, len);
   if(!ret)
     {
     fprintf(stderr, "No current working directory.\n");
     abort();
     }
+
+  return ret;
 }
 inline int Chdir(const char* dir)
 {
-- 
GitLab