pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/icon Use sysconf(_SC_CLK_TCK) instead of CLK_TCK....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d0583d5c2656
branches:  trunk
changeset: 543957:d0583d5c2656
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Jun 28 17:14:25 2008 +0000

description:
Use sysconf(_SC_CLK_TCK) instead of CLK_TCK. Fixes build on Linux.
Closes PR pkg/39051.

diffstat:

 lang/icon/distinfo         |   3 ++-
 lang/icon/patches/patch-bb |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 4a7de0245242 -r d0583d5c2656 lang/icon/distinfo
--- a/lang/icon/distinfo        Sat Jun 28 16:37:07 2008 +0000
+++ b/lang/icon/distinfo        Sat Jun 28 17:14:25 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2006/03/19 15:57:36 joerg Exp $
+$NetBSD: distinfo,v 1.15 2008/06/28 17:14:25 tnn Exp $
 
 SHA1 (icon.v942src.tgz) = 9536e9346188deb2dc5853e03b5f7a85991314b1
 RMD160 (icon.v942src.tgz) = 7e0ec62b714c433acb23a31bad62028424f72ead
@@ -29,3 +29,4 @@
 SHA1 (patch-ay) = 34186d788599e3e62fd1f27e931feb240c5aab2d
 SHA1 (patch-az) = 49785eb95d1ee006a6788e92031e0782e081ee71
 SHA1 (patch-ba) = f077eaee178fba82da8a35ab8b6a046dc4df4809
+SHA1 (patch-bb) = 0a8dd463a16e8436db153c87ebda3af448cdb1ac
diff -r 4a7de0245242 -r d0583d5c2656 lang/icon/patches/patch-bb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/icon/patches/patch-bb        Sat Jun 28 17:14:25 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-bb,v 1.4 2008/06/28 17:14:25 tnn Exp $
+
+--- src/common/time.c.orig     2002-07-09 18:49:27.000000000 +0200
++++ src/common/time.c
+@@ -32,7 +32,7 @@ long millisec()
+    t = cptime();
+    if (starttime == -2)
+       starttime = t;
+-   return (long) ((1000.0 / CLK_TCK) * (t - starttime));
++   return (long) ((1000.0 / sysconf(_SC_CLK_TCK)) * (t - starttime));
+    }
+ 
+ #else                                 /* NoPosixTimes */



Home | Main Index | Thread Index | Old Index