From 524f0b1b0ab408777d16002a5909f0cfc9e9d58b Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Fri, 26 Nov 1999 17:33:53 +0000 Subject: - move strtok_r into reentrancy.c - add rand_r() --- main/php_reentrancy.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'main/php_reentrancy.h') diff --git a/main/php_reentrancy.h b/main/php_reentrancy.h index eaf5e37751..4e7aad2441 100644 --- a/main/php_reentrancy.h +++ b/main/php_reentrancy.h @@ -60,8 +60,21 @@ char *asctime_r(const struct tm *tm, char *buf); struct tm *gmtime_r(const time_t *const timep, struct tm *p_tm); #endif +#if !defined(HAVE_STRTOK_R) +#define strtok_r php_strtok_r +char *strtok_r(char *s, const char *delim, char **last); +#endif + +#if !defined(HAVE_RAND_R) +#define rand_r php_rand_r +int rand_r(unsigned int *seed); +#endif + +#if !defined(ZTS) +#undef PHP_NEED_REENTRANCY +#endif -#if defined(ZTS) && defined(PHP_NEED_REENTRANCY) +#if defined(PHP_NEED_REENTRANCY) void reentrancy_startup(void); void reentrancy_shutdown(void); #else -- cgit v1.2.1