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



_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to