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" #include "../fs.h"
#ifdef MACOSX
#include <sys/types.h> #include <sys/types.h>
#endif
#include <sys/param.h> #include <sys/param.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <dirent.h> #include <dirent.h>
@ -80,7 +82,7 @@ FilesystemNode *FilesystemNode::getRoot() {
POSIXFilesystemNode::POSIXFilesystemNode() { POSIXFilesystemNode::POSIXFilesystemNode() {
#if 1 #if 1
char buf[MAXPATHLEN]; char buf[MAXPATHLEN];
getwd(buf); getcwd(buf, MAXPATHLEN);
_path = buf; _path = buf;
_displayName = lastPathComponent(_path); _displayName = lastPathComponent(_path);