]> git.proxmox.com Git - qemu.git/blobdiff - util/qemu-timer-common.c
Merge remote-tracking branch 'mjt/trivial-patches' into staging
[qemu.git] / util / qemu-timer-common.c
index 16f5e758b21f642b02273f41735c147a83561b75..95e0847c76f3b88ee713f19f119134093a0454da 100644 (file)
@@ -49,9 +49,7 @@ int use_rt_clock;
 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(__OpenBSD__)
+#ifdef CLOCK_MONOTONIC
     {
         struct timespec ts;
         if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {