aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-05-20 13:20:12 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-05-20 13:20:12 +0000
commit829309c70c47926cb1c05727118ebe77c417eecc (patch)
tree8710350c316152ad3f0742ce9c2f06c181c53ae5 /vl.c
parentc6a1c22ba68d1731dd3a593fe71e4399f080bd56 (diff)
BSD fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@831 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index baa09e58ad..84ac49d91f 100644
--- a/vl.c
+++ b/vl.c
@@ -739,10 +739,12 @@ static void host_alarm_handler(int host_signum)
#ifndef _WIN32
+#if defined(__linux__)
+
#define RTC_FREQ 1024
static int rtc_fd;
-
+
static int start_rtc_timer(void)
{
rtc_fd = open("/dev/rtc", O_RDONLY);
@@ -763,7 +765,16 @@ static int start_rtc_timer(void)
return 0;
}
-#endif
+#else
+
+static int start_rtc_timer(void)
+{
+ return -1;
+}
+
+#endif /* !defined(__linux__) */
+
+#endif /* !defined(_WIN32) */
static void init_timers(void)
{