[D-runtime] druntime commit, revision 483

Jonathan M Davis jmdavisProg at gmx.com
Sat Jan 8 00:31:53 PST 2011


On Saturday 08 January 2011 00:00:21 Brad Roberts wrote:
> All three build started failing:
> 
> win32:
> ../dmd/src/dmd -c -d -o- -Isrc -Iimport -Hfimport\core\thread.di
> src\core\thread.d src\core\thread.d(1084): Error: undefined identifier
> milliseconds
> src\core\thread.d(1093): Error: function core.time.Duration.opCmp (in
> const(Duration) rhs) const is not callable using argument types (_error_)
> src\core\thread.d(1097): Error: 'val' is not a scalar, it is a Duration
> src\core\thread.d(1097): Error: 'val' is not of arithmetic type, it is a
> Duration src\core\thread.d(1099): Error: no property 'totalMilliseconds'
> for type 'Duration'
> 
> Linux 32 and 64:
> ../dmd/src/dmd -c -d -o- -Isrc -Iimport -Hfimport/core/time.di
> src/core/time.d src/core/time.d(1294): Error: undefined identifier
> CLOCK_MONOTONIC src/core/time.d(1860): Error: undefined identifier
> CLOCK_MONOTONIC

For the monotonic clock,

    enum CLOCK_MONOTONIC    = 1;

needs to be added around line 140 of core.sys.posix.time (under CLOCK_REALTIME 
would probably the be the place to put it).

- Jonathan M Davis


More information about the D-runtime mailing list