random: Fix compilation error on Android 4.3.
commit26653040b88fde1a98e6a7bbefc8f0bb0ff797fc
authorBruno Haible <bruno@clisp.org>
Fri, 25 Jan 2019 00:36:26 +0000 (25 01:36 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 25 Jan 2019 01:14:28 +0000 (25 02:14 +0100)
tree7a32ee7c3baabc3d065a105a8373111856636d5c
parent3215a9f5672562b3698ad231f57857ab11b355ec
random: Fix compilation error on Android 4.3.

* lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
(initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
(setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
* m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
* modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
* modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
REPLACE_INITSTATE, REPLACE_SETSTATE.
* doc/posix-functions/random.texi: Correct the description of the
situation on Android.
* doc/posix-functions/srandom.texi: Likewise.
* doc/posix-functions/rand.texi: Likewise.
* doc/posix-functions/srand.texi: Likewise.
ChangeLog
doc/posix-functions/rand.texi
doc/posix-functions/random.texi
doc/posix-functions/srand.texi
doc/posix-functions/srandom.texi
lib/stdlib.in.h
m4/random.m4
m4/stdlib_h.m4
modules/random
modules/stdlib