diff options
author | tnn <tnn> | 2008-06-28 17:14:25 +0000 |
---|---|---|
committer | tnn <tnn> | 2008-06-28 17:14:25 +0000 |
commit | e457195ce9ba83cd4ff7e26211c5af7667d8c456 (patch) | |
tree | 5558800a365df560abed37986d6dd5437174e8a5 /lang/icon/patches | |
parent | d11999076b69621ed55c995ae07cf20a1bfb7ab4 (diff) | |
download | pkgsrc-e457195ce9ba83cd4ff7e26211c5af7667d8c456.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-bb | 13 |
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 */ |