From: Brad Date: Tue, 21 Dec 2010 02:24:32 +0000 (-0500) Subject: Add OpenBSD to ifdef list since it has CLOCK_MONOTONIC. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7ae63a517fb50fe32b8ce88bfc18a1a1ed056189;p=qemu-xen-4.1-testing.git Add OpenBSD to ifdef list since it has CLOCK_MONOTONIC. Signed-off-by: Brad Smith Signed-off-by: Blue Swirl --- 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) {