Better getentropy() usability checks
This commit is contained in:
parent
bfa866e2f0
commit
5c804e1ac8
9
configure
vendored
9
configure
vendored
@ -19145,12 +19145,11 @@ int
|
|||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
# error getentropy() is currently disabled on Apple operating systems
|
|
||||||
#endif
|
|
||||||
|
|
||||||
unsigned char buf;
|
unsigned char buf;
|
||||||
(void) getentropy((void *) &buf, 1U);
|
|
||||||
|
if (&getentropy != NULL) {
|
||||||
|
(void) getentropy((void *) &buf, 1U);
|
||||||
|
}
|
||||||
|
|
||||||
;
|
;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -848,12 +848,11 @@ unsigned char buf;
|
|||||||
# error A recent libasan version on an old system may intercept nonexistent functions
|
# error A recent libasan version on an old system may intercept nonexistent functions
|
||||||
#endif
|
#endif
|
||||||
]], [[
|
]], [[
|
||||||
#ifdef __APPLE__
|
|
||||||
# error getentropy() is currently disabled on Apple operating systems
|
|
||||||
#endif
|
|
||||||
|
|
||||||
unsigned char buf;
|
unsigned char buf;
|
||||||
(void) getentropy((void *) &buf, 1U);
|
|
||||||
|
if (&getentropy != NULL) {
|
||||||
|
(void) getentropy((void *) &buf, 1U);
|
||||||
|
}
|
||||||
]])],
|
]])],
|
||||||
[AC_MSG_RESULT(yes)
|
[AC_MSG_RESULT(yes)
|
||||||
AC_CHECK_FUNCS([getentropy])],
|
AC_CHECK_FUNCS([getentropy])],
|
||||||
|
Loading…
Reference in New Issue
Block a user