From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BXjgz-00013X-32 for qemu-devel@nongnu.org; Tue, 08 Jun 2004 12:43:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BXjgv-00012B-W6 for qemu-devel@nongnu.org; Tue, 08 Jun 2004 12:43:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXjgv-000126-TS for qemu-devel@nongnu.org; Tue, 08 Jun 2004 12:43:13 -0400 Received: from [213.169.128.67] (helo=mail.avacom.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BXjgI-0002jt-3J for qemu-devel@nongnu.org; Tue, 08 Jun 2004 12:42:34 -0400 Received: from [213.169.133.116] (ppp110-dial-up.avacom.net [213.169.133.116]) by mail.avacom.net (Postfix) with ESMTP id 1FB98B8DB8 for ; Tue, 8 Jun 2004 19:42:30 +0300 (EET DST) Message-ID: <40C5EC4F.50206@emirates.net.ae> Date: Tue, 08 Jun 2004 20:41:51 +0400 From: Maarten Boekhold MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] timer in vl.c Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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