qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-0.8.2 on glibc 2.2.5
@ 2006-07-26 17:38 Bill Rossi
  2006-10-23 11:39 ` [Qemu-devel] qemu-0.8.2 on glibc 2.2.5: CLOCK_MONOTONIC not defined Wolfgang Schildbach
  0 siblings, 1 reply; 3+ messages in thread
From: Bill Rossi @ 2006-07-26 17:38 UTC (permalink / raw)
  To: qemu-devel


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-23 17:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-26 17:38 [Qemu-devel] qemu-0.8.2 on glibc 2.2.5 Bill Rossi
2006-10-23 11:39 ` [Qemu-devel] qemu-0.8.2 on glibc 2.2.5: CLOCK_MONOTONIC not defined Wolfgang Schildbach
2006-10-23 17:00   ` Martin Bochnig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).