pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/39051: [patch] lang/icon breaks with new glibc
>Number: 39051
>Category: pkg
>Synopsis: [patch] lang/icon breaks with new glibc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 27 09:25:00 +0000 2008
>Originator: Aleksej Saushev
>Release:
>Organization:
>Environment:
Linux 2.6.24-16-generic i686
>Description:
lang/icon doesn't build on linux-based systems with new glibc.
>How-To-Repeat:
bmake
>Fix:
Add the patch below:
CLK_TCK is an obsolete name for CLOCKS_PER_SEC (glibc).
--- src/common/time.c.orig 2002-07-09 20:49:27.000000000 +0400
+++ src/common/time.c 2008-06-27 01:29:02.676532810 +0400
@@ -32,7 +32,7 @@
t = cptime();
if (starttime == -2)
starttime = t;
- return (long) ((1000.0 / CLK_TCK) * (t - starttime));
+ return (long) ((1000.0 / CLOCKS_PER_SEC) * (t - starttime));
}
#else /* NoPosixTimes */
Home |
Main Index |
Thread Index |
Old Index