diff options
author | Brad <brad@comstyle.com> | 2010-12-20 21:24:32 -0500 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-21 19:44:42 +0000 |
commit | 7ae63a517fb50fe32b8ce88bfc18a1a1ed056189 (patch) | |
tree | c0925bf9dbb98ab4f5955ff84e56cddaab3b95e4 /qemu-timer-common.c | |
parent | 5f668643dc6ef3e59d5bc9b86fdf6778c59c98f2 (diff) | |
download | qemu-7ae63a517fb50fe32b8ce88bfc18a1a1ed056189.zip qemu-7ae63a517fb50fe32b8ce88bfc18a1a1ed056189.tar.gz qemu-7ae63a517fb50fe32b8ce88bfc18a1a1ed056189.tar.bz2 |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-timer-common.c b/qemu-timer-common.c index fff4399..755e300 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) { |