summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2001-07-12 02:58:21 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-12 00:52:36 +0000
commite5dd39fcc65538f6d292cb5228105f85fe9eff3e (patch)
tree4e71359b578678b76ffee5e922b8299458ae2c58 /op.h
parent0698c26b0962200032e136c010a6eead072d5cf4 (diff)
downloadperl-e5dd39fcc65538f6d292cb5228105f85fe9eff3e.tar.gz
Use reentrant API glibc
Message-ID: <B772A6AD.2288%artur@contiller.se> p4raw-id: //depot/perl@11283
Diffstat (limited to 'op.h')
-rw-r--r--op.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/op.h b/op.h
index 33afa0a528..05fe77ef03 100644
--- a/op.h
+++ b/op.h
@@ -456,3 +456,12 @@ struct loop {
#define PERL_LOADMOD_DENY 0x1
#define PERL_LOADMOD_NOIMPORT 0x2
#define PERL_LOADMOD_IMPORT_OPS 0x4
+
+#ifdef USE_REENTRANT_API
+typedef struct {
+ struct tm* tmbuff;
+} REBUF;
+#define localtime(a) localtime_r(a,PL_reentrant_buffer->tmbuff)
+#define gmtime(a) gmtime_r(a,PL_reentrant_buffer->tmbuff)
+#endif
+