diff options
author | adam <adam@pkgsrc.org> | 2017-01-07 10:26:53 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2017-01-07 10:26:53 +0000 |
commit | 495636388dcdc95a71c46f7e28e08b7785f479e5 (patch) | |
tree | 258763e17295560efd8e57d5d3840a07ab762859 /audio/flac/patches | |
parent | f26e00a2a406a0046070d4f6b131f36b82624529 (diff) | |
download | pkgsrc-495636388dcdc95a71c46f7e28e08b7785f479e5.tar.gz |
Fix building on systems where CLOCK_PROCESS_CPUTIME_ID is not defined.
Diffstat (limited to 'audio/flac/patches')
-rw-r--r-- | audio/flac/patches/patch-microbench_util.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/flac/patches/patch-microbench_util.c b/audio/flac/patches/patch-microbench_util.c new file mode 100644 index 00000000000..51bbc79417d --- /dev/null +++ b/audio/flac/patches/patch-microbench_util.c @@ -0,0 +1,15 @@ +$NetBSD: patch-microbench_util.c,v 1.1 2017/01/07 10:26:54 adam Exp $ + +Fix building on systems where CLOCK_PROCESS_CPUTIME_ID is not defined. + +--- microbench/util.c.orig 2017-01-07 10:24:50.000000000 +0000 ++++ microbench/util.c +@@ -95,7 +95,7 @@ benchmark_function (void (*testfunc) (vo + return counter_diff (&start, &end) / count ; + } /* benchmark_function */ + +-#elif defined HAVE_CLOCK_GETTIME ++#elif defined HAVE_CLOCK_GETTIME && defined CLOCK_PROCESS_CPUTIME_ID + + #include <time.h> + #include <sys/time.h> |