diff options
Diffstat (limited to 'src/main/cpp/util/file_posix.cc')
-rw-r--r-- | src/main/cpp/util/file_posix.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/cpp/util/file_posix.cc b/src/main/cpp/util/file_posix.cc index 475de9ef18..cdeb0ecd5b 100644 --- a/src/main/cpp/util/file_posix.cc +++ b/src/main/cpp/util/file_posix.cc @@ -299,6 +299,7 @@ bool MakeDirectories(const string &path, unsigned int mode) { return MakeDirectories(path, mode, true); } +#ifndef __CYGWIN__ string GetCwd() { char cwdbuf[PATH_MAX]; if (getcwd(cwdbuf, sizeof cwdbuf) == NULL) { @@ -306,6 +307,7 @@ string GetCwd() { } return string(cwdbuf); } +#endif // not __CYGWIN__ bool ChangeDirectory(const string& path) { return chdir(path.c_str()) == 0; |