summaryrefslogtreecommitdiff
path: root/config_h.SH
diff options
context:
space:
mode:
authorBenjamin Holzman <bah@ecnvantage.com>2006-07-19 03:11:09 -0400
committerH.Merijn Brand <h.m.brand@xs4all.nl>2006-11-06 09:43:30 +0000
commit8572b25d870f5a82a300ce816436b52f0f8afb0a (patch)
tree5b8af110b4d2e7e843e45f9f5b7e771b039847fe /config_h.SH
parent296c5fee961dc8807527de4ac3a8363d8cea1a10 (diff)
downloadperl-8572b25d870f5a82a300ce816436b52f0f8afb0a.tar.gz
RE: [perl #26136] localtime(3) calls tzset(3), but localtime_r(3) may not.
From: "Benjamin Holzman" <bholzman@longitude.com> Message-ID: <010801c6ab24$09b9ed30$ce0515ac@office.iseoptions.com> p4raw-id: //depot/perl@29209
Diffstat (limited to 'config_h.SH')
-rw-r--r--config_h.SH7
1 files changed, 7 insertions, 0 deletions
diff --git a/config_h.SH b/config_h.SH
index 7693c03cc4..48122845f1 100644
--- a/config_h.SH
+++ b/config_h.SH
@@ -2287,6 +2287,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
* This symbol, if defined, indicates that the localtime_r routine
* is available to localtime re-entrantly.
*/
+#$d_localtime_r_needs_tzset LOCALTIME_R_NEEDS_TZSET /**/
+#ifdef LOCALTIME_R_NEEDS_TZSET
+#define L_R_TZSET tzset(),
+#else
+#define L_R_TZSET
+#endif
+
/* LOCALTIME_R_PROTO:
* This symbol encodes the prototype of localtime_r.
* It is zero if d_localtime_r is undef, and one of the