aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/posix
diff options
context:
space:
mode:
authorMax Horn2003-03-26 21:17:14 +0000
committerMax Horn2003-03-26 21:17:14 +0000
commit0042dd73ecbdad693ce8996bdbee8910ea8db1a0 (patch)
tree291fa970e6aabfea1f033a0adf52503b492b3d3d /backends/fs/posix
parentf5360cbb6c0123ec1334c0ff293358ca8b784625 (diff)
downloadscummvm-rg350-0042dd73ecbdad693ce8996bdbee8910ea8db1a0.tar.gz
scummvm-rg350-0042dd73ecbdad693ce8996bdbee8910ea8db1a0.tar.bz2
scummvm-rg350-0042dd73ecbdad693ce8996bdbee8910ea8db1a0.zip
sys/types.h only needed on OS X to work non-POSIX compliance in system headers; use getcwd instead of getwd
svn-id: r6868
Diffstat (limited to 'backends/fs/posix')
-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);