* [Qemu-devel] [WIN32] qemu-system-ppc fix
@ 2005-01-18 23:37 Ronald
0 siblings, 0 replies; only message in thread
From: Ronald @ 2005-01-18 23:37 UTC (permalink / raw)
To: qemu-devel
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-18 23:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-18 23:37 [Qemu-devel] [WIN32] qemu-system-ppc fix Ronald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).