summaryrefslogtreecommitdiffstats
path: root/core/macos.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-24 01:14:06 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-24 01:14:39 -0800
commita3a23f63a6a276f08626562b0a8f8e184dc01f1f (patch)
treecfa3c0da5fdfa89dd458a2dad2f7140f6f6fcd05 /core/macos.c
parent5ed93a9d9e7d35ab680ba763aa0c2e8302ef6b08 (diff)
downloadsubsurface-a3a23f63a6a276f08626562b0a8f8e184dc01f1f.tar.gz
Add subsurface_stat for Mac
Which is also used on iOS. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/macos.c')
-rw-r--r--core/macos.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/macos.c b/core/macos.c
index c50ad6a0a..a7272599b 100644
--- a/core/macos.c
+++ b/core/macos.c
@@ -190,6 +190,11 @@ int subsurface_access(const char *path, int mode)
return access(path, mode);
}
+int subsurface_stat(const char* path, struct stat* buf)
+{
+ return stat(path, buf);
+}
+
struct zip *subsurface_zip_open_readonly(const char *path, int flags, int *errorp)
{
return zip_open(path, flags, errorp);