Patchwork [2/3] Add OpenBSD to ifdef list since it has CLOCK_MONOTONIC.

login
register
mail settings
Submitter Brad
Date Dec. 21, 2010, 2:24 a.m.
Message ID <20101221022431.GB9844@rox.home.comstyle.com>
Download mbox | patch
Permalink /patch/76254/
State New
Headers show

Comments

Brad - Dec. 21, 2010, 2:24 a.m.
Signed-off-by: Brad Smith <brad@comstyle.com>

---
 qemu-timer-common.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

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