summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-12-09 09:41:09 -0500
committerJan Ekström <jeebjp@gmail.com>2017-12-09 21:11:46 +0200
commitba418132cd04865d444f4da2b5553e4d83b18138 (patch)
tree5e60f610cc1c1b3ed029da0643c9bb51e63001f9 /wscript_build.py
parent1d7a746505a2a5ec0392e0c8a6c1ddd0c7133baa (diff)
downloadmpv-ba418132cd04865d444f4da2b5553e4d83b18138.tar.bz2
mpv-ba418132cd04865d444f4da2b5553e4d83b18138.tar.xz
osdep: add poll shim for macOS
This implements a poll-compatible interface, backed by select on macOS, suitable for polling on device files - which are not supported by macOS's implementation of poll. This is a (long-standing) bug in macOS, so hopefully we can eventually remove this shim.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index e649913626..2358de7c4a 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -476,6 +476,7 @@ def build(ctx):
( "osdep/timer.c" ),
( timer_c ),
( "osdep/threads.c" ),
+ ( "osdep/polldev.c", "posix" ),
( "osdep/ar/HIDRemote.m", "apple-remote" ),
( "osdep/macosx_application.m", "cocoa" ),