1
0
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:
Kacper Michajłow 2024-05-01 21:42:44 +02:00
parent 86abbb89a7
commit 419898267e

View File

@ -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