[GHC] #7519: CLK_TCK is not always a constant
GHC
cvs-ghc at haskell.org
Wed Jan 23 00:08:48 CET 2013
#7519: CLK_TCK is not always a constant
---------------------------------+------------------------------------------
Reporter: singpolyma | Owner:
Type: bug | Status: patch
Priority: normal | Milestone:
Component: libraries/base | Version: 7.7
Keywords: qnx | Os: Other
Architecture: Unknown/Multiple | Failure: Building GHC failed
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Changes (by PHO):
* cc: pho@… (added)
Comment:
NetBSD does that too.
In `/usr/include/time.h`:
{{{
/*
* CLK_TCK uses libc's internal __sysconf() to retrieve the machine's
* HZ. The value of _SC_CLK_TCK is 39 -- we hard code it so we do not
* need to include unistd.h
*/
long __sysconf(int);
#define CLK_TCK (__sysconf(39))
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7519#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list