Browse Source

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>
remotes/github/stable-0.14
Brad 15 years ago
committed by Blue Swirl
parent
commit
7ae63a517f
  1. 3
      qemu-timer-common.c

3
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) {

Loading…
Cancel
Save