random: Fix test compilation failure on Cygwin 1.5.25.
commit299d6d5f9ae9ea6ece5da41ae16a53331ff55a02
authorBruno Haible <bruno@clisp.org>
Thu, 17 Aug 2017 12:17:58 +0000 (17 14:17 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 17 Aug 2017 12:17:58 +0000 (17 14:17 +0200)
tree6ca9f05a0252d9910204a6fa6a06bcf04da00711
parentdaba2833be01f39982742b9bcdbbd1319be157aa
random: Fix test compilation failure on Cygwin 1.5.25.

* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
HAVE_DECL_SETSTATE.
* m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
declared.
* modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
HAVE_DECL_SETSTATE.
* lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
(setstate): Declare also if HAVE_DECL_SETSTATE is 0.
* doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
* doc/posix-functions/random.texi: Likewise.
* doc/posix-functions/setstate.texi: Likewise.
* doc/posix-functions/srandom.texi: Likewise.
ChangeLog
doc/posix-functions/initstate.texi
doc/posix-functions/random.texi
doc/posix-functions/setstate.texi
doc/posix-functions/srandom.texi
lib/stdlib.in.h
m4/random.m4
m4/stdlib_h.m4
modules/stdlib