diff options
author | Thomas Klausner <tk@giga.or.at> | 2014-05-19 11:51:37 +0300 |
---|---|---|
committer | Thomas Klausner <tk@giga.or.at> | 2014-05-19 11:51:37 +0300 |
commit | 59ad357c930f3a409112a19c8b58fb9dd84069d9 (patch) | |
tree | 9b50e03c50506b6bf474509e3362473a3b60b516 /src | |
parent | 32123f5a602dd3b581e46aead900f31257f0e163 (diff) | |
download | xine-lib-59ad357c930f3a409112a19c8b58fb9dd84069d9.tar.gz xine-lib-59ad357c930f3a409112a19c8b58fb9dd84069d9.tar.bz2 |
NetBSD does not support CLOCK_THREAD_CPUTIME_ID
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-utils/memcpy.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |