python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / vlc / 0008-fix-fallback-code-and-add-required-realtime-library.patch
blob43f197acfc12993c30889ad1de0d19e558084410
1 From 381bcb7cb03bb602351a323daf3b69b2d4f45e77 Mon Sep 17 00:00:00 2001
2 From: Waldemar Brodkorb <wbx@openadk.org>
3 Date: Fri, 26 Aug 2016 15:11:25 +0200
4 Subject: [PATCH] fix fallback code and add required realtime library to link
5 command
7 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
8 ---
9 configure.ac | 1 +
10 src/posix/thread.c | 2 +-
11 2 files changed, 2 insertions(+), 1 deletion(-)
13 diff --git a/configure.ac b/configure.ac
14 index cb1de25..018c11c 100644
15 --- a/configure.ac
16 +++ b/configure.ac
17 @@ -121,6 +121,7 @@ case "${host_os}" in
19 linux*)
20 SYS=linux
21 + AC_CHECK_LIB([rt], [posix_spawnp], [VLC_ADD_LIBS([libvlccore],[-lrt])], [], [])
23 bsdi*)
24 SYS=bsdi
25 diff --git a/src/posix/thread.c b/src/posix/thread.c
26 index 07fa71e..8b8595f 100644
27 --- a/src/posix/thread.c
28 +++ b/src/posix/thread.c
29 @@ -85,7 +85,7 @@ static clockid_t vlc_clock_id;
31 static void vlc_clock_setup_once (void)
33 -# if (_POSIX_MONOTONIC_CLOCK == 0)
34 +# if (_POSIX_MONOTONIC_CLOCK == 0) && (_POSIX_CLOCK_SELECTION > 0)
35 long val = sysconf (_SC_MONOTONIC_CLOCK);
36 assert (val != 0);
37 vlc_clock_id = (val < 0) ? CLOCK_REALTIME : CLOCK_MONOTONIC;
38 --
39 2.1.4