summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2012-01-31 19:30:09 +0000
committerÆvar Arnfjörð Bjarmason <avar@cpan.org>2012-02-11 22:22:25 +0000
commitb262f7131f65ee76968fbc067a6fe6df84a49fd2 (patch)
tree9e220a3b09a1b175e0f52d13e6ae3fcb80cc2cac
parentc39915242f53a4d2c184fd276024090e789f00a6 (diff)
downloadperl-b262f7131f65ee76968fbc067a6fe6df84a49fd2.tar.gz
Solaris needs _STRPTIME_DONTZERO in order not to zero out all the untouched fields in strptime(3)
-rw-r--r--ext/POSIX/POSIX.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index 65fd9319b1..4ad3cce250 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -13,6 +13,9 @@
#define PERL_NO_GET_CONTEXT
+/* Solaris needs this in order not to zero out all the untouched fields in strptime() */
+#define _STRPTIME_DONTZERO
+
#include "EXTERN.h"
#define PERLIO_NOT_STDIO 1
#include "perl.h"