From 34fac3bf68f4787508648b6236d3d18059ba8775 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 20 Sep 2014 04:18:40 +0200 Subject: osdep: hack to fix build with low quality pthreads-w32 headers When compiling semaphore_osx.c on win32, the following error happened: /usr/i686-w64-mingw32/include/semaphore.h:160:6: error: unknown type name 'mode_t' This is because this system header references symbols that are not not defined anywhere. This is clearly a bug in pthreads-w32, but has been known and unfixed since 2012, so add a hack to fix it. We build semaphore_osx.c this way because it saves us an extra configure check. On win32, Linux, etc. it's empty and contains "#include " only. Should fix #1108. --- osdep/semaphore.h | 1 + 1 file changed, 1 insertion(+) diff --git a/osdep/semaphore.h b/osdep/semaphore.h index 832f059df4..cad2f7fb1f 100644 --- a/osdep/semaphore.h +++ b/osdep/semaphore.h @@ -1,6 +1,7 @@ #ifndef MP_SEMAPHORE_H_ #define MP_SEMAPHORE_H_ +#include #include // OSX provides non-working empty stubs, so we emulate them. -- cgit v1.2.3