aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/fs/posix/posix-fs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp
index 0cd52b7df2..d560db51c5 100644
--- a/backends/fs/posix/posix-fs.cpp
+++ b/backends/fs/posix/posix-fs.cpp
@@ -22,7 +22,9 @@
#include "../fs.h"
+#ifdef MACOSX
#include <sys/types.h>
+#endif
#include <sys/param.h>
#include <sys/stat.h>
#include <dirent.h>
@@ -80,7 +82,7 @@ FilesystemNode *FilesystemNode::getRoot() {
POSIXFilesystemNode::POSIXFilesystemNode() {
#if 1
char buf[MAXPATHLEN];
- getwd(buf);
+ getcwd(buf, MAXPATHLEN);
_path = buf;
_displayName = lastPathComponent(_path);