platform/posix.c
changeset 240 052041af9001
parent 235 4ad12914f652
child 249 fed886543e40
--- a/platform/posix.c	Sat May 25 09:40:51 2002 +0000
+++ b/platform/posix.c	Sat May 25 09:41:14 2002 +0000
@@ -470,5 +470,13 @@
     return(1);
 } /* __PHYSFS_platformDelete */
 
+
+PHYSFS_sint64 __PHYSFS_platformGetLastModTime(const char *fname)
+{
+    struct stat statbuf;
+    BAIL_IF_MACRO(stat(fname, &statbuf) < 0, strerror(errno), -1);
+    return statbuf.st_mtime;
+} /* __PHYSFS_platformGetLastModTime */
+
 /* end of posix.c ... */