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:
parent
f5360cbb6c
commit
0042dd73ec
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue