summaryrefslogtreecommitdiffstats
path: root/osdep/semaphore_osx.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/semaphore_osx.c')
-rw-r--r--osdep/semaphore_osx.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/osdep/semaphore_osx.c b/osdep/semaphore_osx.c
index 0d5b6f4d00..1bff233007 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.
*/
+#include "osdep/semaphore.h"
+
#ifdef MP_SEMAPHORE_EMULATION
#include <unistd.h>
@@ -21,9 +23,6 @@
#include "osdep/io.h"
-#include "semaphore.h"
-
-
int mp_sem_init(mp_sem_t *sem, int pshared, unsigned int value)
{
if (pshared) {