diff options
author | Jan Dubois <jand@activestate.com> | 2003-11-04 09:16:00 -0800 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2003-11-05 08:12:08 +0000 |
commit | b04fc15e5179476658171a592f82403e6fe7967f (patch) | |
tree | 8cad0f560fc783c6bc3abfc136f71229413ff4ad | |
parent | 764896cedda0f475c9c96033dde3caa4e7992c98 (diff) | |
download | perl-b04fc15e5179476658171a592f82403e6fe7967f.tar.gz |
reentr.pl is not defining _srandom_struct
Message-ID: <0mjgqvk4f8idatljni3cfoeta3ljbm8a6c@4ax.com>
p4raw-id: //depot/maint-5.8/perl@21658
-rw-r--r-- | reentr.h | 3 | ||||
-rw-r--r-- | reentr.pl | 7 |
2 files changed, 10 insertions, 0 deletions
@@ -771,6 +771,9 @@ typedef struct { int32_t _random_retval; # endif #endif /* HAS_RANDOM_R */ +#ifdef HAS_SRANDOM_R + struct random_data _srandom_struct; +#endif /* HAS_SRANDOM_R */ int dummy; /* cannot have empty structs */ } REENTR; @@ -764,6 +764,13 @@ if (exists $seena{random}) { EOF } +if (exists $seena{srandom}) { + push @struct, <<EOF; +#ifdef HAS_SRANDOM_R + $seent{srandom} _srandom_struct; +#endif /* HAS_SRANDOM_R */ +EOF +} local $" = ''; |