• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libraw1394/0001-testlibraw-build-the-CLOCK_MONOTONIC_RAW-test-condit.patch
Thomas PetazzoniThomas Petazzoni committed 60d71a9cbe312 Feb 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
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
5
​
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.
10
​
11
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12
---
13
 tools/testlibraw.c | 2 ++
14
 1 file changed, 2 insertions(+)
15
​
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);
23
 
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
33
 }
34
 
35
 int test_card(int card)
36
-- 
37
2.6.4
38
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.