1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00

fixes on Linux

This commit is contained in:
Raymond Hammarling 2015-08-06 21:39:12 +02:00
parent 4aa5a3da3a
commit 84b17e1efa
2 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,10 @@
#include <semaphore.h> #include <semaphore.h>
#include <dispatch/dispatch.h> #include <dispatch/dispatch.h>
#include <fuse_lowlevel.h>
#define FUSE_OFF_T off_t
typedef dispatch_semaphore_t bindings_sem_t; typedef dispatch_semaphore_t bindings_sem_t;
NAN_INLINE static int semaphore_init (dispatch_semaphore_t *sem) { NAN_INLINE static int semaphore_init (dispatch_semaphore_t *sem) {
@ -79,6 +83,9 @@ typedef DWORD thread_fn_rtn_t;
#include <sys/mount.h> #include <sys/mount.h>
#include <semaphore.h> #include <semaphore.h>
#include <fuse_lowlevel.h>
#define FUSE_OFF_T off_t
typedef sem_t bindings_sem_t; typedef sem_t bindings_sem_t;

View File

@ -4,7 +4,6 @@
#include <fuse.h> #include <fuse.h>
#include <fuse_opt.h> #include <fuse_opt.h>
// #include <fuse_lowlevel.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>