Hello, On 2018-12-14 3:36 p.m., Paul Eggert wrote:
This does not ring a bell with me. Presumably the "# define __random_r random_r" business in lib/random_r.c and lib/stdlib.in.h also need to be done for random and srandom in lib/random.c and lib/stdlib.in.h?
Thanks for the hint. The attached patch works for me on mingw, and doesn't seem to have ill effects on other systems. However I do not know if this is sufficiently correct or not. regards, - assaf
diff --git a/lib/random.c b/lib/random.c index d14b82084..a971fc864 100644 --- a/lib/random.c +++ b/lib/random.c @@ -52,6 +52,12 @@ #ifndef _LIBC # include <libc-config.h> +# define __srandom srandom +# define __random random +# define __srandom_r srandom_r +# define __initstate_r initstate_r +# define __setstate_r setstate_r +# define __random_r random_r #endif /* Specification. */