From 91141a8897949955348ff7efa827ed3eca244d11 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 20 Aug 2002 12:42:37 +0000 Subject: [PATCH] only use altzone if we have it git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11159 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/strftime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/roken/strftime.c b/lib/roken/strftime.c index 08c5be184..74a962262 100644 --- a/lib/roken/strftime.c +++ b/lib/roken/strftime.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999 - 2001 Kungliga Tekniska Högskolan + * Copyright (c) 1999 - 2002 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -348,8 +348,10 @@ strftime (char *buf, size_t maxsize, const char *format, #if defined(HAVE_STRUCT_TM_TM_GMTOFF) (long)tm->tm_gmtoff #elif defined(HAVE_TIMEZONE) +#ifdef HAVE_ALTZONE tm->tm_isdst ? (long)altzone : +#endif (long)timezone #else #error Where in timezone chaos are you?