summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep/semaphore_osx.c3
1 files changed, 2 insertions, 1 deletions
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 <unistd.h>
#include <poll.h>
#include <limits.h>
@@ -21,7 +23,6 @@
#include "semaphore.h"
-#ifdef MP_SEMAPHORE_EMULATION
int mp_sem_init(mp_sem_t *sem, int pshared, unsigned int value)
{