summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-10 03:29:24 +0200
committerwm4 <wm4@nowhere>2014-09-10 03:29:24 +0200
commit524db3384b14421fd0ecd6b2572105b9a105b53c (patch)
treea9f38294813da1941dcaf1422dfc6c7700cbb3d5 /osdep
parente9b756c7ad7d51b41b2ccf0f72eb904b0eea2169 (diff)
downloadmpv-524db3384b14421fd0ecd6b2572105b9a105b53c.tar.bz2
mpv-524db3384b14421fd0ecd6b2572105b9a105b53c.tar.xz
osdep: fix windows build
Oops.
Diffstat (limited to 'osdep')
-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)
{