From 59ad357c930f3a409112a19c8b58fb9dd84069d9 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 19 May 2014 11:51:37 +0300 Subject: NetBSD does not support CLOCK_THREAD_CPUTIME_ID --- src/xine-utils/memcpy.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/xine-utils/memcpy.c b/src/xine-utils/memcpy.c index dd5ec71db..be993f9da 100644 --- a/src/xine-utils/memcpy.c +++ b/src/xine-utils/memcpy.c @@ -508,6 +508,12 @@ static uint64_t memcpy_timing[sizeof(memcpy_method)/sizeof(memcpy_method[0])] = #ifdef HAVE_POSIX_TIMERS /* Prefer clock_gettime() where available. */ + +# ifndef CLOCK_THREAD_CPUTIME_ID +/* not defined in NetBSD (bug #535) */ +# define CLOCK_THREAD_CPUTIME_ID CLOCK_MONOTONIC +# endif + static int64_t _x_gettime(void) { struct timespec tm; -- cgit v1.2.3