aboutsummaryrefslogtreecommitdiff
path: root/qemu-timer-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-timer-common.c')
-rw-r--r--qemu-timer-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-timer-common.c b/qemu-timer-common.c
index fff43996d8..755e300bc9 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) {