From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBKYy-000258-Vi for qemu-devel@nongnu.org; Tue, 11 Sep 2012 03:07:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBKYt-000202-5t for qemu-devel@nongnu.org; Tue, 11 Sep 2012 03:07:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBKYs-0001zy-U1 for qemu-devel@nongnu.org; Tue, 11 Sep 2012 03:07:07 -0400 Message-ID: <504EE315.7010401@redhat.com> Date: Tue, 11 Sep 2012 09:07:01 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20120910235402.7060E41136@buildbot.b1-systems.de> <504EC8A8.4070501@weilnetz.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] buildbot failure in qemu on default_mingw32 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Zhang, Yang Z" Cc: Stefan Weil , "qemu-devel@nongnu.org" Il 11/09/2012 09:05, Zhang, Yang Z ha scritto: > how about the following patch: > > diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c > index d63554f..30bbbe6 100644 > --- a/hw/mc146818rtc.c > +++ b/hw/mc146818rtc.c > @@ -556,14 +556,14 @@ static void rtc_set_cmos(RTCState *s, const struct tm *tm) > > static void rtc_update_time(RTCState *s) > { > - struct tm ret; > + struct tm *ret; > time_t guest_sec; > int64_t guest_nsec; > > guest_nsec = get_guest_rtc_ns(s); > guest_sec = guest_nsec / NSEC_PER_SEC; > - gmtime_r(&guest_sec, &ret); > - rtc_set_cmos(s, &ret); > + ret = gmtime(&guest_sec); > + rtc_set_cmos(s, ret); > } No, let's add a portability wrapper for gmtime_r instead. Paolo