pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/flac Fix building on systems where CLOCK_PROCESS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3462dfdea9f7
branches:  trunk
changeset: 356896:3462dfdea9f7
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Jan 07 10:26:53 2017 +0000

description:
Fix building on systems where CLOCK_PROCESS_CPUTIME_ID is not defined.

diffstat:

 audio/flac/distinfo                        |   3 ++-
 audio/flac/patches/patch-microbench_util.c |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r e583de7fc665 -r 3462dfdea9f7 audio/flac/distinfo
--- a/audio/flac/distinfo       Sat Jan 07 10:23:00 2017 +0000
+++ b/audio/flac/distinfo       Sat Jan 07 10:26:53 2017 +0000
@@ -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 -r e583de7fc665 -r 3462dfdea9f7 audio/flac/patches/patch-microbench_util.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/flac/patches/patch-microbench_util.c        Sat Jan 07 10:26:53 2017 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index