#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);
return 0;
}
-#endif
+#else
+
+static int start_rtc_timer(void)
+{
+ return -1;
+}
+
+#endif /* !defined(__linux__) */
+
+#endif /* !defined(_WIN32) */
static void init_timers(void)
{
#include "cpu.h"
-#ifdef _BSD
-#define lseek64 lseek
-#define ftruncate64 ftruncate
-#define mkstemp64 mkstemp
-#define MAP_ANONYMOUS MAP_ANON
-#endif
-
#ifndef glue
#define xglue(x, y) x ## y
#define glue(x, y) xglue(x, y)