summaryrefslogtreecommitdiff
path: root/lang/icon/patches
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/icon/patches
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/icon/patches')
-rw-r--r--lang/icon/patches/patch-bb13
1 files changed, 13 insertions, 0 deletions
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 */