[Scummvm-cvs-logs] CVS: scummvm/backends/fs/posix posix-fs.cpp,1.12,1.13

Max Horn fingolfin at users.sourceforge.net
Wed Mar 26 13:18:11 CET 2003


Update of /cvsroot/scummvm/scummvm/backends/fs/posix
In directory sc8-pr-cvs1:/tmp/cvs-serv24865

Modified Files:
	posix-fs.cpp 
Log Message:
sys/types.h only needed on OS X to work non-POSIX compliance in system headers; use getcwd instead of getwd

Index: posix-fs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/fs/posix/posix-fs.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- posix-fs.cpp	26 Mar 2003 17:12:56 -0000	1.12
+++ posix-fs.cpp	26 Mar 2003 21:17:14 -0000	1.13
@@ -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 @@
 POSIXFilesystemNode::POSIXFilesystemNode() {
 #if 1
 	char buf[MAXPATHLEN];
-	getwd(buf);
+	getcwd(buf, MAXPATHLEN);
 	
 	_path = buf;
 	_displayName = lastPathComponent(_path);





More information about the Scummvm-git-logs mailing list