All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] timer in vl.c
@ 2004-06-08 16:41 Maarten Boekhold
  0 siblings, 0 replies; only message in thread
From: Maarten Boekhold @ 2004-06-08 16:41 UTC (permalink / raw)
  To: qemu-devel

Hi all,

I'm trying to port qemu so it compiles on cygwin, and I'm having a bit 
of trouble with vl.c.

vl.c defines start_rtc_timer() and init_timers(). If I read it 
correctly, the code says something like (only put code that I believe is 
relevant to this question down below):

#ifndef _WIN32
#if defined (__linux__)
static int rtc_fd
static int start_rtc_timer(void) {
...
}
#else
static int start_rtc_timer(void) { return -1;}
#endif
#endif

static void init_timers(void) {
#ifdef _WIN32
...
#else
 /* here rtc_fd is referenced */
#endif
}

How does this work when you try to compile on a BSD platform? On such a 
platform, rtc_fd won't be defined, yet the code that references it will 
be compiled, no?

CVS from june 7

Maarten

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-08 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08 16:41 [Qemu-devel] timer in vl.c Maarten Boekhold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.