All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Boekhold <boekhold@emirates.net.ae>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] timer in vl.c
Date: Tue, 08 Jun 2004 20:41:51 +0400	[thread overview]
Message-ID: <40C5EC4F.50206@emirates.net.ae> (raw)

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

                 reply	other threads:[~2004-06-08 16:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40C5EC4F.50206@emirates.net.ae \
    --to=boekhold@emirates.net.ae \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.