diff options
author | wm4 <wm4@nowhere> | 2013-06-16 22:56:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-16 23:29:32 +0200 |
commit | c412f7daf6f4bc31aa727dbafc8b379bd265604c (patch) | |
tree | 360be5cfc1f70b80cf8465b453ba5e967b3cbbb9 /video/out/gl_video.h | |
parent | fa30dc415419a6a22d31f79095e0a0d41bc61905 (diff) | |
download | mpv-c412f7daf6f4bc31aa727dbafc8b379bd265604c.tar.bz2 mpv-c412f7daf6f4bc31aa727dbafc8b379bd265604c.tar.xz |
cache: fix build on OSX (again)
OSX doesn't support the POSIX API we were using.
We check for _POSIX_TIMERS. 0 or -1 means unsupported. See:
http://pubs.opengroup.org/onlinepubs/009696699/functions/clock_getres.html
http://pubs.opengroup.org/onlinepubs/009696699/basedefs/unistd.h.html
The workaround of using gettimeofday() is suggested by Apple:
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/pthread_cond_timedwait.3.html
Thanks to AStorm for providing help here.
Diffstat (limited to 'video/out/gl_video.h')
0 files changed, 0 insertions, 0 deletions