--- 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;
