configs: mx53loco: Bump U-Boot version to 2016.07
[buildroot-gz.git] / package / libraw1394 / 0001-testlibraw-build-the-CLOCK_MONOTONIC_RAW-test-condit.patch
blobb87ef715dea73f67b36bdc26a54f1a13a82bbc79
1 From 94c66ade15d7fc468b52c72dfe76a8c10b1910a7 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Fri, 12 Feb 2016 10:13:45 +0100
4 Subject: [PATCH] testlibraw: build the CLOCK_MONOTONIC_RAW test conditionally
6 CLOCK_MONOTONIC_RAW is a somewhat recent addition, and some older
7 toolchains/kernels may not have the support for it. Therefore, we
8 build the part of the test that uses CLOCK_MONOTONIC_RAW only when
9 this definition is available.
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 ---
13 tools/testlibraw.c | 2 ++
14 1 file changed, 2 insertions(+)
16 diff --git a/tools/testlibraw.c b/tools/testlibraw.c
17 index d8a0702..ae37157 100644
18 --- a/tools/testlibraw.c
19 +++ b/tools/testlibraw.c
20 @@ -211,6 +211,7 @@ read_cycle_timer(raw1394handle_t handle)
21 printf(" local time from CLOCK_MONOTONIC: %lld us\n",
22 (unsigned long long)local_time);
24 +#if defined(CLOCK_MONOTONIC_RAW)
25 retval = raw1394_read_cycle_timer_and_clock(handle, &ct, &local_time,
26 CLOCK_MONOTONIC_RAW);
27 if (retval < 0) {
28 @@ -221,6 +222,7 @@ read_cycle_timer(raw1394handle_t handle)
29 ct >> 25, (ct >> 12) & 0x1fff, ct & 0xfff);
30 printf(" local time from CLOCK_MONOTONIC_RAW: %lld us\n",
31 (unsigned long long)local_time);
32 +#endif
35 int test_card(int card)
36 --
37 2.6.4