diff options
author | Bin Meng <bin.meng@windriver.com> | 2022-08-24 17:39:53 +0800 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2022-08-25 15:24:09 +0200 |
commit | f10225d7d67815df745da82b6bdd8d233609767b (patch) | |
tree | 334056c6aabd408404894767c71cd5f2c4ad53dc /tests/qtest/rtc-test.c | |
parent | d1c637ecff6f8c13cc9983b96a7aad2922d283f9 (diff) | |
download | qemu-f10225d7d67815df745da82b6bdd8d233609767b.zip qemu-f10225d7d67815df745da82b6bdd8d233609767b.tar.gz qemu-f10225d7d67815df745da82b6bdd8d233609767b.tar.bz2 |
tests/qtest: Adapt {m48t59,rtc}-test cases for win32
There is no tm_gmtoff member in 'struct tm' on Windows.
Update rtc-test.c and m48t59-test.c accordingly.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220824094029.1634519-16-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/rtc-test.c')
-rw-r--r-- | tests/qtest/rtc-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/rtc-test.c b/tests/qtest/rtc-test.c index 8126ab1..02ed4e1 100644 --- a/tests/qtest/rtc-test.c +++ b/tests/qtest/rtc-test.c @@ -111,7 +111,7 @@ static void cmos_get_date_time(struct tm *date) date->tm_mday = mday; date->tm_mon = mon - 1; date->tm_year = base_year + year - 1900; -#ifndef __sun__ +#if !defined(__sun__) && !defined(_WIN32) date->tm_gmtoff = 0; #endif |