qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] qemu-0.8.2 on glibc 2.2.5


From: Bill Rossi
Subject: [Qemu-devel] qemu-0.8.2 on glibc 2.2.5
Date: Wed, 26 Jul 2006 17:38:25 -0000

Fails to compile on Linux with glibc 2.2.5.  CLOCK_MONOTONIC isn't
defined in glibc 2.2.5.  The following patch is a workaround:

--- qemu-0.8.2/vl.c     2006-07-22 13:23:34.000000000 -0400
+++ ../qemu-0.8.2/vl.c  2006-07-26 11:37:34.000000000 -0400
@@ -541,7 +541,7 @@
 static void init_get_clock(void)
 {
     use_rt_clock = 0;
-#if defined(__linux__)
+#if 0 //defined(__linux__)
     {
         struct timespec ts;
         if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
@@ -553,7 +553,7 @@

 static int64_t get_clock(void)
 {
-#if defined(__linux__)
+#if 0 //defined(__linux__)
     if (use_rt_clock) {
         struct timespec ts;
         clock_gettime(CLOCK_MONOTONIC, &ts);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]