aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorBenjamin Fleischer <fleiben@gmail.com>2013-01-08 14:53:09 +0100
committerBenjamin Fleischer <fleiben@gmail.com>2013-01-08 15:32:57 +0100
commit14581937282486ab7ce057ec79f226181ef1d45d (patch)
tree74dc8d75bcc78d1aae3f17d9975ebd9f0c60767c /sshfs.c
parent66458931ddd09fc15244c5ddf3c1ec73e2fd08b9 (diff)
downloadsshfs-14581937282486ab7ce057ec79f226181ef1d45d.tar
sshfs-14581937282486ab7ce057ec79f226181ef1d45d.tar.gz
sshfs-14581937282486ab7ce057ec79f226181ef1d45d.tar.bz2
sshfs-14581937282486ab7ce057ec79f226181ef1d45d.zip
Add unnamed semaphore implementation for Mac OS X
In the past we relied on libosxfuse including a working unnamed semaphore implmentation for Mac OS X. This will not be the case in future releases of OSXFUSE, therefore we need to add our own implementation.
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshfs.c b/sshfs.c
index bf65aea..5658412 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -23,7 +23,7 @@
#include <string.h>
#include <stdint.h>
#include <errno.h>
-#if !__APPLE__
+#ifndef __APPLE__
# include <semaphore.h>
#endif
#include <pthread.h>
@@ -46,6 +46,7 @@
#ifdef __APPLE__
# include <strings.h>
# include <libgen.h>
+# include <darwin_compat.h>
#endif
#include "cache.h"