Hash :
39eda5d0
Author :
Date :
2023-01-22T14:22:28
Resolve conflicts for functions introduced in Android API level 28. * lib/unistd.in.h (getentropy): Consider REPLACE_GETENTROPY. Disable _GL_CXXALIASWARN invocation on non-glibc systems. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETENTROPY. * modules/unistd (Makefile.am): Substitute REPLACE_GETENTROPY. * m4/getentropy.m4 (gl_FUNC_GETENTROPY): Conditionally set REPLACE_GETENTROPY. * modules/getentropy (Depends-on, configure.ac): Consider REPLACE_GETENTROPY.
Description:
Fill buffer with random bytes.
Files:
lib/getentropy.c
m4/getentropy.m4
Depends-on:
getrandom [test $HAVE_GETENTROPY = 0 || test $REPLACE_GETENTROPY = 1]
extensions
unistd
configure.ac:
gl_FUNC_GETENTROPY
gl_CONDITIONAL([GL_COND_OBJ_GETENTROPY],
[test $HAVE_GETENTROPY = 0 || test $REPLACE_GETENTROPY = 1])
gl_UNISTD_MODULE_INDICATOR([getentropy])
Makefile.am:
if GL_COND_OBJ_GETENTROPY
lib_SOURCES += getentropy.c
endif
Include:
<unistd.h>
Link:
$(GETRANDOM_LIB)
License:
LGPL
Maintainer:
all