diff options
author | Benjamin Fleischer <fleiben@gmail.com> | 2013-01-08 14:53:09 +0100 |
---|---|---|
committer | Benjamin Fleischer <fleiben@gmail.com> | 2013-01-08 15:32:57 +0100 |
commit | 14581937282486ab7ce057ec79f226181ef1d45d (patch) | |
tree | 74dc8d75bcc78d1aae3f17d9975ebd9f0c60767c /sshfs.c | |
parent | 66458931ddd09fc15244c5ddf3c1ec73e2fd08b9 (diff) | |
download | sshfs-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |