diff options
author | wm4 <wm4@nowhere> | 2017-12-02 23:29:40 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-12-02 23:29:40 +0100 |
commit | 7bc48f78431f09dd03b8aeb0c61e84e41c5e4664 (patch) | |
tree | 263499e926bce460d46114ef6e2a4c84ecf6b4e7 | |
parent | 0601e48ef4eac0b62ecf3ab5ed654e27e2a20215 (diff) | |
download | mpv-7bc48f78431f09dd03b8aeb0c61e84e41c5e4664.tar.bz2 mpv-7bc48f78431f09dd03b8aeb0c61e84e41c5e4664.tar.xz |
build: remove nanosleep() check
Also guaranteed by POSIX.
-rw-r--r-- | osdep/timer-linux.c | 9 | ||||
-rw-r--r-- | wscript | 4 |
2 files changed, 0 insertions, 13 deletions
diff --git a/osdep/timer-linux.c b/osdep/timer-linux.c index 1d52db279c..6cd88a253f 100644 --- a/osdep/timer-linux.c +++ b/osdep/timer-linux.c @@ -25,7 +25,6 @@ #include "config.h" #include "timer.h" -#if HAVE_NANOSLEEP void mp_sleep_us(int64_t us) { if (us < 0) @@ -35,14 +34,6 @@ void mp_sleep_us(int64_t us) ts.tv_nsec = (us % 1000000) * 1000; nanosleep(&ts, NULL); } -#else -void mp_sleep_us(int64_t us) -{ - if (us < 0) - return; - usleep(us); -} -#endif #if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(CLOCK_MONOTONIC) uint64_t mp_raw_time_us(void) @@ -224,10 +224,6 @@ iconv support use --disable-iconv.", 'deps': 'os-win32 || os-cygwin', 'func': check_true }, { - 'name': 'nanosleep', - 'desc': 'nanosleep', - 'func': check_statement('time.h', 'nanosleep(0,0)') - }, { 'name': 'posix-spawn-native', 'desc': 'spawnp()/kill() POSIX support', 'func': check_statement(['spawn.h', 'signal.h'], |