summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>2014-09-10 17:22:20 +0900
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2014-09-10 17:22:20 +0900
commit5bbf5ee10303dcbb3f3a3e8a4ecf0193a137a66c (patch)
tree56e39e6df129c63eb35ed7e3c7eeb68dcd6d81c4
parent302a04091b798c698fec7045cd86b6c3ecc3de02 (diff)
downloadmpv-5bbf5ee10303dcbb3f3a3e8a4ecf0193a137a66c.tar.bz2
mpv-5bbf5ee10303dcbb3f3a3e8a4ecf0193a137a66c.tar.xz
osdep/semaphore_osx.c: Include osdep/semaphore.h before #ifdef
osdep/semaphore.h is the file that defines the very #define that is tested in the #ifdef that wraps its inclusion, so it was never compiled.
-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) {