Bug 5495 – Compile Error(FreeBSD): undefined identifier CLOCK_MONOTONIC

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
Other
OS
FreeBSD
Creation time
2011-01-27T01:12:00Z
Last change time
2011-01-27T01:24:27Z
Assigned to
nobody
Creator
sohgo

Attachments

IDFilenameSummaryContent-TypeSize
884time.d.patcha patch for time.d to define CLOCK_MONOTONICtext/plain360

Comments

Comment #0 by sohgo — 2011-01-27T01:12:41Z
Created attachment 884 a patch for time.d to define CLOCK_MONOTONIC I encounterd a compilation error when compiling druntime on a FreeBSD 8.1(i386) machie. I attache a patch file to fix it. Thanks. src/core/time.d(1295): Error: undefined identifier CLOCK_MONOTONIC src/core/time.d(1883): Error: undefined identifier CLOCK_MONOTONIC gmake[1]: *** [lib/libdruntime.a] Error 1 gmake[1]: Leaving directory `/usr/home/sohgo/d/druntime' gmake: *** [make-druntime] Error 2
Comment #1 by braddr — 2011-01-27T01:24:27Z