corsis / clock

High-resolution clock functions: monotonic, realtime, cputime.
Other
58 stars 25 forks source link

Install error on FreeBSD 9.0 and 9.1 #1

Closed fegu closed 10 years ago

fegu commented 10 years ago

cabal install clock gives this error on FreeBSD 9.0 and 9.1

Building clock-0.3... Preprocessing library clock-0.3... [1 of 1] Compiling System.Clock ( System/Clock.hs, dist/build/System/Clock.o ) csec/clock.c: In function 'clock_readtime_processtime':

csec/clock.c:149:9: error: 'CLOCK_PROCESS_CPUTIME_ID' undeclared (first use in this function)

csec/clock.c:149:9: note: each undeclared identifier is reported only once for each function it appears in csec/clock.c: In function 'clock_readres_processtime':

csec/clock.c:184:8: error: 'CLOCK_PROCESS_CPUTIME_ID' undeclared (first use in this function) Failed to install clock-0.3 cabal-install: Error: some packages failed to install: clock-0.3 failed during the building phase. The exception was: ExitFailure 1

CetinSert commented 10 years ago

Wow, thank you for posting this issue and sending the pull request that fixes it! It has now been merged.