id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 8435,Can't compile Chrono on HP-UX due to no CLOCK_REALTIME macro.,konrad.zemek@…,viboes,"We're trying to compile Chrono library on HP-UX 11i23, to be used with conjunction with threads. The compilation fails with {{{ #error does not supply CLOCK_REALTIME }}} This is due to the following code in system_clocks.hpp: {{{ # if defined( BOOST_CHRONO_POSIX_API ) # if ! defined(CLOCK_REALTIME) # error does not supply CLOCK_REALTIME # endif # endif }}} HP-UX provides CLOCK_REALTIME, although as an enum, not a macro, so the ifdef fails. This is true for version 11i23 and I suspect that also for other HP-UX versions (I cannot confirm this though, and it's hard to get any information on HP-UX through googling). I'm not sure what solution would be right here, but simple ifdef does not cut it. I sidestepped this issue by modyfying it to {{{ # if ! defined(CLOCK_REALTIME) || defined(__hpux) }}} but it's more of a hack than a solution, especially since I'm not certain that every version of HP-UX supply CLOCK_REALTIME. ",Bugs,closed,Boost 1.54.0,chrono,Boost 1.53.0,Showstopper,fixed,"chrono, hp-ux, hpux, clock_realtime, time.h",