summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>2003-11-04 09:16:00 -0800
committerNicholas Clark <nick@ccl4.org>2003-11-05 08:12:08 +0000
commitb04fc15e5179476658171a592f82403e6fe7967f (patch)
tree8cad0f560fc783c6bc3abfc136f71229413ff4ad
parent764896cedda0f475c9c96033dde3caa4e7992c98 (diff)
downloadperl-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.h3
-rw-r--r--reentr.pl7
2 files changed, 10 insertions, 0 deletions
diff --git a/reentr.h b/reentr.h
index a826abf848..0b67f92a36 100644
--- a/reentr.h
+++ b/reentr.h
@@ -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;
diff --git a/reentr.pl b/reentr.pl
index fbde0e5cd1..db6c8fd166 100644
--- a/reentr.pl
+++ b/reentr.pl
@@ -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 $" = '';