aboutsummaryrefslogtreecommitdiffstats
path: root/qemu-timer-common.c
diff options
context:
space:
mode:
authorBrad <brad@comstyle.com>2010-12-20 21:24:32 -0500
committerBlue Swirl <blauwirbel@gmail.com>2010-12-21 19:44:42 +0000
commit7ae63a517fb50fe32b8ce88bfc18a1a1ed056189 (patch)
treec0925bf9dbb98ab4f5955ff84e56cddaab3b95e4 /qemu-timer-common.c
parent5f668643dc6ef3e59d5bc9b86fdf6778c59c98f2 (diff)
Add OpenBSD to ifdef list since it has CLOCK_MONOTONIC.
Signed-off-by: Brad Smith <brad@comstyle.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
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 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) {