Hash :
299d6d5f
Author :
Date :
2017-08-17T14:17:58
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.
@node setstate
@section @code{setstate}
@findex setstate
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/setstate.html}
Gnulib module: random
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Solaris 2.4, mingw, MSVC 14.
@item
This function is not declared on some platforms:
Cygwin 1.5.25.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
This function has a slightly incompatible declaration (the argument type being
@samp{const char *} instead of @samp{char *}) on some platforms.
@end itemize