diff options
author | adam <adam> | 2017-01-07 10:26:53 +0000 |
---|---|---|
committer | adam <adam> | 2017-01-07 10:26:53 +0000 |
commit | 42c9ee47f3bd86fa07b1483e33badc4bb98514c8 (patch) | |
tree | ee5690d7a6e425fd5a5d433b2bd4591c4684745c /audio/flac | |
parent | 2ed41c85a6acb675be8cda9a1cb1bb0d0416eae4 (diff) | |
download | pkgsrc-42c9ee47f3bd86fa07b1483e33badc4bb98514c8.tar.gz |
Fix building on systems where CLOCK_PROCESS_CPUTIME_ID is not defined.
Diffstat (limited to 'audio/flac')
-rw-r--r-- | audio/flac/distinfo | 3 | ||||
-rw-r--r-- | audio/flac/patches/patch-microbench_util.c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/audio/flac/distinfo b/audio/flac/distinfo index af7fa2eb782..09b5b3570a8 100644 --- a/audio/flac/distinfo +++ b/audio/flac/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.26 2017/01/05 09:16:41 prlw1 Exp $ +$NetBSD: distinfo,v 1.27 2017/01/07 10:26:53 adam Exp $ SHA1 (flac/flac-1.3.2.tar.xz) = 2bdbb56b128a780a5d998e230f2f4f6eb98f33ee RMD160 (flac/flac-1.3.2.tar.xz) = fd25a098941556c5787d7369b12c43aca9a9df78 SHA512 (flac/flac-1.3.2.tar.xz) = 63910e8ebbe508316d446ffc9eb6d02efbd5f47d29d2ea7864da9371843c8e671854db6e89ba043fe08aef1845b8ece70db80f1cce853f591ca30d56ef7c3a15 Size (flac/flac-1.3.2.tar.xz) = 776192 bytes SHA1 (patch-configure) = 74e3e944f70ba6d1bf9d94fab1d9174a3dab04bb +SHA1 (patch-microbench_util.c) = f03bfbef537d10ceb9742451ec3509be886e15ed SHA1 (patch-strip_non_asm_libtool_args.sh) = f90f09fbf6a0fa938693a9d52316d3a4105129e5 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> |