diff --git a/osdep/semaphore_osx.c b/osdep/semaphore_osx.c index 72173f9564..0d5b6f4d00 100644 --- a/osdep/semaphore_osx.c +++ b/osdep/semaphore_osx.c @@ -11,6 +11,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifdef MP_SEMAPHORE_EMULATION + #include #include #include @@ -21,7 +23,6 @@ #include "semaphore.h" -#ifdef MP_SEMAPHORE_EMULATION int mp_sem_init(mp_sem_t *sem, int pshared, unsigned int value) {