getentropy: Work around a macOS and Solaris problem.
commit90b3a5b610c51939aace88f3fd9ebf0d9cc74af3
authorBruno Haible <bruno@clisp.org>
Sun, 31 May 2020 18:12:04 +0000 (31 20:12 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 31 May 2020 18:18:25 +0000 (31 20:18 +0200)
treec98984df87c1f3749a64ba3e1bf85af75525fa39
parent67306f600fe6a3bcf3fbb6d8bf4b8953b74a8fb7
getentropy: Work around a macOS and Solaris problem.

* lib/unistd.in.h: Include <sys/random.h>, when needed for the
'getentropy' module.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
UNISTD_H_HAVE_SYS_RANDOM_H.
* m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
UNISTD_H_HAVE_SYS_RANDOM_H.
* modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
* doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
problem. List more platforms.
ChangeLog
doc/glibc-functions/getentropy.texi
lib/unistd.in.h
m4/sys_random_h.m4
m4/unistd_h.m4
modules/unistd