diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-02-24 01:14:06 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-24 01:14:39 -0800 |
commit | a3a23f63a6a276f08626562b0a8f8e184dc01f1f (patch) | |
tree | cfa3c0da5fdfa89dd458a2dad2f7140f6f6fcd05 /core/macos.c | |
parent | 5ed93a9d9e7d35ab680ba763aa0c2e8302ef6b08 (diff) | |
download | subsurface-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.c | 5 |
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); |