summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni 2016-02-12 10:18:08 +0100
committerGravatar Stefan Richter 2016-03-20 17:08:48 +0100
commit0ef8fab9e467c170475f9c6232de9ab953a7226d (patch)
tree71efb62d2ecc879fc668bbbad7b9326c167ed1bf /tools
parentUse <stdint.h> types instead of non-standard types (diff)
testlibraw: build the CLOCK_MONOTONIC_RAW test conditionally
CLOCK_MONOTONIC_RAW is a somewhat recent addition, and some older toolchains/kernels may not have the support for it. Therefore, we build the part of the test that uses CLOCK_MONOTONIC_RAW only when this definition is available. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to '')
-rw-r--r--tools/testlibraw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testlibraw.c b/tools/testlibraw.c
index d8a0702..ae37157 100644
--- a/tools/testlibraw.c
+++ b/tools/testlibraw.c
@@ -211,6 +211,7 @@ read_cycle_timer(raw1394handle_t handle)
printf(" local time from CLOCK_MONOTONIC: %lld us\n",
(unsigned long long)local_time);
+#if defined(CLOCK_MONOTONIC_RAW)
retval = raw1394_read_cycle_timer_and_clock(handle, &ct, &local_time,
CLOCK_MONOTONIC_RAW);
if (retval < 0) {
@@ -221,6 +222,7 @@ read_cycle_timer(raw1394handle_t handle)
ct >> 25, (ct >> 12) & 0x1fff, ct & 0xfff);
printf(" local time from CLOCK_MONOTONIC_RAW: %lld us\n",
(unsigned long long)local_time);
+#endif
}
int test_card(int card)
lass='deletions'>-2/+16 2000-06-15Update libtool version number.Gravatar aeb 2-2/+2 2000-06-14Added copyright headers.Gravatar aeb 6-0/+54 2000-06-11Added explicit AC_PROG_INSTALL call.Gravatar aeb 1-0/+1 2000-06-09Fix size of error field.Gravatar aeb 1-2/+2 2000-06-02Modified support for 32/64 bit environments, control struct fields have fixed...Gravatar aeb 7-43/+28 2000-05-28Added support for environments with 64 bit kernel and 32 bit userland.Gravatar aeb 8-7/+45 2000-04-27Fixed missing setting of ext code in raw1394_start_lock()Gravatar aeb 1-0/+1 2000-04-15Fixed lock transaction to actually return response value.Gravatar aeb 3-5/+11 2000-04-12Add userdata functions as news.Gravatar aeb 1-0/+4 2000-04-05Add userdata functions.Gravatar aeb 3-0/+18 2000-03-18Bump version number to 0.6.Gravatar aeb 3-5/+6 2000-03-18Mention byte order change.Gravatar aeb 1-0/+2 2000-03-18Mention SourceForge home.Gravatar aeb 1-1/+5