sys/types.h only needed on OS X to work non-POSIX compliance in system headers; use getcwd instead of getwd

svn-id: r6868
This commit is contained in:
Max Horn 2003-03-26 21:17:14 +00:00
parent f5360cbb6c
commit 0042dd73ec

View file

@ -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);