Skip to content
Snippets Groups Projects
Commit 7ae63a51 authored by Brad Smith's avatar Brad Smith Committed by Blue Swirl
Browse files

Add OpenBSD to ifdef list since it has CLOCK_MONOTONIC.


Signed-off-by: default avatarBrad Smith <brad@comstyle.com>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent 5f668643
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,8 @@ static void __attribute__((constructor)) init_get_clock(void)
{
use_rt_clock = 0;
#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) \
|| defined(__DragonFly__) || defined(__FreeBSD_kernel__)
|| defined(__DragonFly__) || defined(__FreeBSD_kernel__) \
|| defined(__OpenBSD__)
{
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment