aboutsummaryrefslogtreecommitdiff
path: root/tests/time
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-03 19:59:05 +0200
committerAlon Zakai <alonzakai@gmail.com>2011-10-03 19:59:05 +0200
commita9f082c2d60417730d11d2c0dc9da7e6e5ed2e00 (patch)
treebaf6d9b2d17814be17d45f90d09b74f47ebb9248 /tests/time
parent95420a111d0ba2154ce9953b2506f7e402b97d7b (diff)
fix test_time
Diffstat (limited to 'tests/time')
-rw-r--r--tests/time/src.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/time/src.c b/tests/time/src.c
index 9517b74c..aaf2878f 100644
--- a/tests/time/src.c
+++ b/tests/time/src.c
@@ -45,8 +45,8 @@ int main() {
time_t t2 = xmas2002 - 60 * 60 * 24 * 30 * 6;
tm_ptr = localtime(&t2);
time_t dst_diff = (tm_ptr->tm_isdst == 1) ? tm_ptr->tm_isdst * 60 * 60 : 0;
- printf("localtime timezone: %d\n", (timezone + tm_ptr->tm_gmtoff == dst_diff));
- printf("localtime daylight: %d\n", daylight == tm_ptr->tm_isdst);
+ printf("localtime timezone: %d\n", (_timezone + tm_ptr->tm_gmtoff == dst_diff)); // glibc needs
+ printf("localtime daylight: %d\n", _daylight == tm_ptr->tm_isdst); // no prefix "_"s
printf("localtime tzname: %d\n", (!strcmp(tzname[0], tm_ptr->tm_zone) ||
!strcmp(tzname[1], tm_ptr->tm_zone)));