summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2008-06-28 17:14:25 +0000
committertnn <tnn@pkgsrc.org>2008-06-28 17:14:25 +0000
commite2af19b2e4a4e9546034fe5f608bb09bd1515c5b (patch)
tree5558800a365df560abed37986d6dd5437174e8a5 /lang
parent5e40d1655b1abad10a9be0dec2b47293fd8c0738 (diff)
downloadpkgsrc-e2af19b2e4a4e9546034fe5f608bb09bd1515c5b.tar.gz
Use sysconf(_SC_CLK_TCK) instead of CLK_TCK. Fixes build on Linux.
Closes PR pkg/39051.
Diffstat (limited to 'lang')
-rw-r--r--lang/icon/distinfo3
-rw-r--r--lang/icon/patches/patch-bb13
2 files changed, 15 insertions, 1 deletions
diff --git a/lang/icon/distinfo b/lang/icon/distinfo
index d05f7e5a82e..285933be110 100644
--- a/lang/icon/distinfo
+++ b/lang/icon/distinfo
@@ -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-ax) = 2da62632e50bf9f60b0784598e74b8a15a245d1e
SHA1 (patch-ay) = 34186d788599e3e62fd1f27e931feb240c5aab2d
SHA1 (patch-az) = 49785eb95d1ee006a6788e92031e0782e081ee71
SHA1 (patch-ba) = f077eaee178fba82da8a35ab8b6a046dc4df4809
+SHA1 (patch-bb) = 0a8dd463a16e8436db153c87ebda3af448cdb1ac
diff --git a/lang/icon/patches/patch-bb b/lang/icon/patches/patch-bb
new file mode 100644
index 00000000000..416a8920047
--- /dev/null
+++ b/lang/icon/patches/patch-bb
@@ -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 */