diff options
Diffstat (limited to 'package/vlc/patches/patch-src_posix_thread_c')
-rw-r--r-- | package/vlc/patches/patch-src_posix_thread_c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/vlc/patches/patch-src_posix_thread_c b/package/vlc/patches/patch-src_posix_thread_c new file mode 100644 index 000000000..5c636c164 --- /dev/null +++ b/package/vlc/patches/patch-src_posix_thread_c @@ -0,0 +1,11 @@ +--- vlc-2.2.4.orig/src/posix/thread.c 2015-02-02 20:42:32.000000000 +0100 ++++ vlc-2.2.4/src/posix/thread.c 2016-09-24 20:34:51.776769484 +0200 +@@ -85,7 +85,7 @@ static clockid_t vlc_clock_id; + + static void vlc_clock_setup_once (void) + { +-# if (_POSIX_MONOTONIC_CLOCK == 0) ++# if (_POSIX_MONOTONIC_CLOCK == 0) && (_POSIX_CLOCK_SELECTION > 0) + long val = sysconf (_SC_MONOTONIC_CLOCK); + assert (val != 0); + vlc_clock_id = (val < 0) ? CLOCK_REALTIME : CLOCK_MONOTONIC; |