aboutsummaryrefslogtreecommitdiff
path: root/backends/gp32/stat.h
diff options
context:
space:
mode:
authorPeter Moraliyski2002-12-02 16:55:18 +0000
committerPeter Moraliyski2002-12-02 16:55:18 +0000
commit4042b1f1fcb177dbe85ddbd98ff37fabf80192f1 (patch)
tree7bbaf93277cf41af7f8e50744815e01e270b39fa /backends/gp32/stat.h
parent2961f75365e216e413ed73030ce213eba50c80a5 (diff)
downloadscummvm-rg350-4042b1f1fcb177dbe85ddbd98ff37fabf80192f1.tar.gz
scummvm-rg350-4042b1f1fcb177dbe85ddbd98ff37fabf80192f1.tar.bz2
scummvm-rg350-4042b1f1fcb177dbe85ddbd98ff37fabf80192f1.zip
license issue cleared
svn-id: r5813
Diffstat (limited to 'backends/gp32/stat.h')
-rw-r--r--backends/gp32/stat.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/backends/gp32/stat.h b/backends/gp32/stat.h
new file mode 100644
index 0000000000..5f3c3d8b6e
--- /dev/null
+++ b/backends/gp32/stat.h
@@ -0,0 +1,29 @@
+//////////////////////////////////////////////////////////////////////////////
+// NOTE: (ph0x)
+// borrowed from wince port as the file was either missing from the gp32sdk
+// or was causing conflicts.
+//////////////////////////////////////////////////////////////////////////////
+
+/* Header is not present in Windows CE SDK */
+
+#include <sys/types.h>
+
+struct stat {
+ _dev_t st_dev;
+ _ino_t st_ino;
+ unsigned short st_mode;
+ short st_nlink;
+ short st_uid;
+ short st_gid;
+ _dev_t st_rdev;
+ _off_t st_size;
+ time_t st_atime;
+ time_t st_mtime;
+ time_t st_ctime;
+};
+
+
+#define _S_IFDIR 0040000 /* directory */
+#define S_IFDIR _S_IFDIR
+
+int stat(const char *, struct stat *);