aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sshfs.c b/sshfs.c
index acea663..5475d98 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3825,7 +3825,7 @@ int main(int argc, char *argv[])
const char *sftp_server;
struct fuse *fuse;
struct fuse_session *se;
-#if !defined(__CYGWIN__)
+#if !defined(__APPLE__) && !defined(__CYGWIN__)
struct stat st;
#endif
@@ -3989,15 +3989,14 @@ int main(int argc, char *argv[])
g_free(tmp);
g_free(fsname);
-
-#if !defined(__CYGWIN__)
+#if !defined(__APPLE__) && !defined(__CYGWIN__)
res = stat(sshfs.mountpoint, &st);
if (res == -1) {
perror(sshfs.mountpoint);
exit(1);
}
sshfs.mnt_mode = st.st_mode;
-#elif defined(__CYGWIN__)
+#else
sshfs.mnt_mode = S_IFDIR | 0755;
#endif