diff options
author | Artur Bergman <sky@nanisky.com> | 2001-07-12 02:58:21 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-07-12 00:52:36 +0000 |
commit | e5dd39fcc65538f6d292cb5228105f85fe9eff3e (patch) | |
tree | 4e71359b578678b76ffee5e922b8299458ae2c58 /op.h | |
parent | 0698c26b0962200032e136c010a6eead072d5cf4 (diff) | |
download | perl-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.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 + |