Repository navigation
Conversation
Reported-by: Harry Sintonen Ref: #11288
dfandrich
left a comment
There was a problem hiding this comment.
Theoretically, CLOCK_MONOTONIC_RAW could exist and be found by autoconf but the system call could fail, while CLOCK_MONOTONIC would succeed. On Linux, this would happen if run on really old kernels (like 2.6.27) so it's probably not worth worrying about there, but what other systems support CLOCK_MONOTONIC_RAW? If there are others, or there could be others in the future, it might be worth calling both, with CLOCK_MONOTONIC only if CLOCK_MONOTONIC_RAW fails.
|
macOS supports CLOCK_MONOTONIC_RAW. I don't know since which version... |
What weirdness would cause that to happen? |
|
Building on a recent kernel but running on an old one.
|
|
@dfandrich what do you think of this approach? |
dfandrich
left a comment
There was a problem hiding this comment.
Looks good to me. This should work fine now even on old (possibly ancient?) systems.
Reported-by: Harry Sintonen Ref: curl#11288 Closes curl#11291
Reported-by: Harry Sintonen Ref: curl#11288 Closes curl#11291
Reported-by: Harry Sintonen
Ref: #11288