diff options
Diffstat (limited to 'osdep/semaphore.h')
-rw-r--r-- | osdep/semaphore.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/osdep/semaphore.h b/osdep/semaphore.h index 81da12d502..3448fb20b0 100644 --- a/osdep/semaphore.h +++ b/osdep/semaphore.h @@ -1,6 +1,8 @@ #ifndef MP_SEMAPHORE_H_ #define MP_SEMAPHORE_H_ +#ifdef __APPLE__ + #include <sys/types.h> #include <semaphore.h> @@ -10,7 +12,6 @@ // sem_post() won't always correctly return an error on overflow. // Process-shared semantics are not provided. -#ifdef __APPLE__ #define MP_SEMAPHORE_EMULATION |