Permalink
Browse files

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>
  • Loading branch information...
brad0 authored and blueswirl committed Dec 21, 2010
1 parent 5f66864 commit 7ae63a517fb50fe32b8ce88bfc18a1a1ed056189
Showing with 2 additions and 1 deletion.
  1. +2 −1 qemu-timer-common.c
View
@@ -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) {

0 comments on commit 7ae63a5

Please sign in to comment.