summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/roken/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/lib/roken/strftime.c')
-rw-r--r--crypto/heimdal/lib/roken/strftime.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/heimdal/lib/roken/strftime.c b/crypto/heimdal/lib/roken/strftime.c
index dcd279b..985b38a 100644
--- a/crypto/heimdal/lib/roken/strftime.c
+++ b/crypto/heimdal/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.
*
@@ -35,7 +35,7 @@
#endif
#include "roken.h"
-RCSID("$Id: strftime.c,v 1.12 2001/09/04 09:53:51 assar Exp $");
+RCSID("$Id: strftime.c,v 1.13 2002/08/20 12:42:37 joda Exp $");
static const char *abb_weekdays[] = {
"Sun",
@@ -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?
OpenPOWER on IntegriCloud