]> Savannah Git Hosting - gnulib.git/commit
sys_random: Work around macOS bug.
authorBruno Haible <bruno@clisp.org>
Sat, 30 May 2020 23:02:21 +0000 (01:02 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 30 May 2020 23:02:21 +0000 (01:02 +0200)
commitafdf2fbbe1dee48a75065aa351e9e526330317fe
treea7adcb15ff29f8f7fdbafa4de6d4c18e77e46101
parent1d1722af8dfee991bad4eed33dd351ca76550fe7
sys_random: Work around macOS bug.

* m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
<stdlib.h> before <sys/random.h>.
* m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
* lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
first.
* doc/glibc-headers/sys_random.texi: Mention the macOS problem.
ChangeLog
doc/glibc-headers/sys_random.texi
lib/sys_random.in.h
m4/getrandom.m4
m4/sys_random_h.m4