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.
This commit is contained in:
Diogo Franco (Kovensky) 2014-09-10 17:22:20 +09:00
parent 302a04091b
commit 5bbf5ee103
1 changed files with 2 additions and 3 deletions

View File

@ -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) {