libgtk3: remove non-existent configure options
[buildroot-gz.git] / package / rt-tests / 0002-Fix-a-build-issue-with-uClibc-ng.patch
blob785d93c9be06904aeacb6f8eebe60dc208a0b1d2
1 From 21e0c16a85c2e028a963703511d750d1751bc254 Mon Sep 17 00:00:00 2001
2 From: Alexey Brodkin <abrodkin@synopsys.com>
3 Date: Wed, 13 Jul 2016 23:46:38 +0200
4 Subject: [PATCH] Fix a build issue with uClibc-ng
6 uClibc-ng has clock_nanosleep() if built with UCLIBC_HAS_ADVANCED_REALTIME,
7 conflicting with emulation function.
9 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
10 [Romain:
11 rebase on v1.0
12 remove uClibc legacy support, uClibc-ng provide utmpx.h]
13 Signed-off-by: Romain Naour <romain.naour@gmail.com>
14 ---
15 src/cyclictest/cyclictest.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
19 index 00e5f3d..92fa3dd 100644
20 --- a/src/cyclictest/cyclictest.c
21 +++ b/src/cyclictest/cyclictest.c
22 @@ -58,7 +58,7 @@
23 #define gettid() syscall(__NR_gettid)
24 #define sigev_notify_thread_id _sigev_un._tid
26 -#ifdef __UCLIBC__
27 +#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_ADVANCED_REALTIME__)
28 #define MAKE_PROCESS_CPUCLOCK(pid, clock) \
29 ((~(clockid_t) (pid) << 3) | (clockid_t) (clock))
30 #define CPUCLOCK_SCHED 2
31 --
32 2.5.5