[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [WIN32] qemu-system-ppc fix
From: |
Ronald |
Subject: |
[Qemu-devel] [WIN32] qemu-system-ppc fix |
Date: |
Wed, 19 Jan 2005 00:37:26 +0100 |
User-agent: |
Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) |
Hi,
This correct the build for windows which don't handle pre-1970 date
correctly.
With a lot of help from Jocelyn Mayer.
--- m48t59.c.old 2005-01-19 00:22:17.584979798 +0100
+++ m48t59.c 2005-01-18 23:49:11.000041668 +0100
@@ -80,6 +80,11 @@
static void set_time (m48t59_t *NVRAM, struct tm *tm)
{
time_t now, new_time;
+
+#ifdef _WIN32
+ if(tm->tm_year < 70)
+ tm->tm_year = 70;
+#endif
new_time = mktime(tm);
now = time(NULL);
Same thing in m48t08.c file
--- m48t08.c.old 2005-01-19 00:23:53.766894517 +0100
+++ m48t08.c 2005-01-19 00:25:01.224204587 +0100
@@ -71,6 +71,11 @@
static void set_time (m48t08_t *NVRAM, struct tm *tm)
{
time_t now, new_time;
+
+#ifdef _WIN32
+ if(tm->tm_year < 70)
+ tm->tm_year = 70;
+#endif
new_time = mktime(tm);
now = time(NULL);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [WIN32] qemu-system-ppc fix,
Ronald <=