mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 09:32:40 +00:00
osdep/semaphore: don't include files if they are not used
This commit is contained in:
parent
86abbb89a7
commit
419898267e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user