From c3d83ee24b60564e90440e4b38d58a0a5df8b8ef Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Mon, 3 Feb 2014 09:01:26 +0100 Subject: Fix redefinition of struct __local_sem_t --- compat/darwin_compat.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'compat') diff --git a/compat/darwin_compat.h b/compat/darwin_compat.h index 1c6ec78..0a16471 100644 --- a/compat/darwin_compat.h +++ b/compat/darwin_compat.h @@ -10,17 +10,15 @@ /* Semaphores */ -struct __local_sem_t -{ - unsigned int count; - pthread_mutex_t count_lock; - pthread_cond_t count_cond; -}; - -typedef struct fuse_sem { +typedef struct darwin_sem { int id; union { - struct __local_sem_t local; + struct + { + unsigned int count; + pthread_mutex_t count_lock; + pthread_cond_t count_cond; + } local; } __data; } darwin_sem_t; -- cgit v1.2.3