diff options
author | Jan Dubois <jand@activestate.com> | 2003-11-04 08:52:14 -0800 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2003-11-05 16:46:12 +0000 |
commit | 5cb13b8da93037c2cbdb71661f5e68b171d254b8 (patch) | |
tree | 48532880f333a8a33feb04e0cbff55fa9432052e | |
parent | 5ea525d0de039812e70221e734564f5bfd21c4be (diff) | |
download | perl-5cb13b8da93037c2cbdb71661f5e68b171d254b8.tar.gz |
reentr.pl is not defining _srandom_struct
Message-Id: <45igqvsus3hr8bno3si087j5qnrqvn79bf@4ax.com>
p4raw-id: //depot/perl@21660
-rw-r--r-- | reentr.c | 6 | ||||
-rw-r--r-- | reentr.h | 3 | ||||
-rw-r--r-- | reentr.pl | 2 |
3 files changed, 10 insertions, 1 deletions
@@ -127,6 +127,8 @@ Perl_reentrant_size(pTHX) { #ifdef HAS_SETLOCALE_R PL_reentrant_buffer->_setlocale_size = REENTRANTSMALLSIZE; #endif /* HAS_SETLOCALE_R */ +#ifdef HAS_SRANDOM_R +#endif /* HAS_SRANDOM_R */ #ifdef HAS_STRERROR_R PL_reentrant_buffer->_strerror_size = REENTRANTSMALLSIZE; #endif /* HAS_STRERROR_R */ @@ -211,6 +213,8 @@ Perl_reentrant_init(pTHX) { #ifdef HAS_SETLOCALE_R New(31338, PL_reentrant_buffer->_setlocale_buffer, PL_reentrant_buffer->_setlocale_size, char); #endif /* HAS_SETLOCALE_R */ +#ifdef HAS_SRANDOM_R +#endif /* HAS_SRANDOM_R */ #ifdef HAS_STRERROR_R New(31338, PL_reentrant_buffer->_strerror_buffer, PL_reentrant_buffer->_strerror_size, char); #endif /* HAS_STRERROR_R */ @@ -284,6 +288,8 @@ Perl_reentrant_free(pTHX) { #ifdef HAS_SETLOCALE_R Safefree(PL_reentrant_buffer->_setlocale_buffer); #endif /* HAS_SETLOCALE_R */ +#ifdef HAS_SRANDOM_R +#endif /* HAS_SRANDOM_R */ #ifdef HAS_STRERROR_R Safefree(PL_reentrant_buffer->_strerror_buffer); #endif /* HAS_STRERROR_R */ @@ -748,6 +748,9 @@ typedef struct { char* _setlocale_buffer; size_t _setlocale_size; #endif /* HAS_SETLOCALE_R */ +#ifdef HAS_SRANDOM_R + struct random_data _srandom_struct; +#endif /* HAS_SRANDOM_R */ #ifdef HAS_STRERROR_R char* _strerror_buffer; size_t _strerror_size; @@ -469,7 +469,7 @@ EOF EOF pushssif $endif; } - elsif ($func =~ /^(drand48|gmtime|localtime|random)$/) { + elsif ($func =~ /^(drand48|gmtime|localtime|random|srandom)$/) { pushssif $ifdef; push @struct, <<EOF; $seent{$func} _${func}_struct; |