summaryrefslogtreecommitdiff
path: root/ext/Time-Piece
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2009-05-06 18:16:20 +0100
committerSteve Hay <SteveHay@planit.com>2009-05-06 18:16:20 +0100
commit81ab4c4438c47e4ce03412afce1305a5499a46bd (patch)
tree001e728ce7e1fbb0be4633eb186847c91d0c2811 /ext/Time-Piece
parentdf31f9b1de77eb9c8ff8fe7f8a21ed9e23a12915 (diff)
downloadperl-81ab4c4438c47e4ce03412afce1305a5499a46bd.tar.gz
Fix POSIX::tzset() as per Time::Piece::_tzset().
Jan Dubois suggested POSIX::tzset() should be fixed too, but there is no way to share the code since Time-Piece is dual-lived and POSIX is not. Therefore, the code is simply duplicated with appropriate comments to prompt keeping the two in sync.
Diffstat (limited to 'ext/Time-Piece')
-rw-r--r--ext/Time-Piece/Piece.xs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/Time-Piece/Piece.xs b/ext/Time-Piece/Piece.xs
index 96fa934042..772ed9c23a 100644
--- a/ext/Time-Piece/Piece.xs
+++ b/ext/Time-Piece/Piece.xs
@@ -161,6 +161,11 @@ fix_win32_tzenv(void)
#endif
+/*
+ * my_tzset - wrapper to tzset() with a fix to make it work (better) on Win32.
+ * This code is duplicated in the POSIX module, so any changes made here
+ * should be made there too.
+ */
static void
my_tzset(pTHX)
{