X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=qemu-timer-common.c;h=755e300bc9f1e7a066f85b35c3b2cde60f5b1bcd;hb=c54ed5bcdd8ed29f9cdfcfc0e456b6ec1f25d2c3;hp=fff43996d81c7d3005da986e82d056ca1a44af08;hpb=2d8418ba8a3ab976fd7f9749f24aab8408643a02;p=qemu.git diff --git a/qemu-timer-common.c b/qemu-timer-common.c index fff43996d..755e300bc 100644 --- a/qemu-timer-common.c +++ b/qemu-timer-common.c @@ -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) {