aboutsummaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
Diffstat (limited to 'macos.c')
-rw-r--r--macos.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/macos.c b/macos.c
index 91992d839..36c1f6049 100644
--- a/macos.c
+++ b/macos.c
@@ -11,7 +11,7 @@
#include <sys/syslimits.h>
#include <stdio.h>
#include <fcntl.h>
-#include <dirent.h>
+#include <unistd.h>
void subsurface_user_info(struct user_info *info)
{ /* Nothing, let's use libgit2-20 on MacOS */ }
@@ -147,6 +147,11 @@ void *subsurface_opendir(const char *path)
return (void *)opendir(path);
}
+int subsurface_access(const char *path, int mode)
+{
+ return access(path, mode);
+}
+
struct zip *subsurface_zip_open_readonly(const char *path, int flags, int *errorp)
{
return zip_open(path, flags, errorp);