summaryrefslogtreecommitdiff
path: root/package/vlc/patches/patch-src_posix_thread_c
blob: 5c636c164772fab593e2f4f6f58bde7314f66cff (plain)
1
2
3
4
5
6
7
8
9
10
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;