mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
build: remove unneeded getentropy detection (HAVE_GETENTROPY)
This commit is contained in:
@@ -1109,13 +1109,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>
|
|||||||
[ AC_MSG_RESULT([no])]
|
[ AC_MSG_RESULT([no])]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_MSG_CHECKING([for getentropy])
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]],
|
|
||||||
[[ getentropy(nullptr, 32) ]])],
|
|
||||||
[ AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_GETENTROPY], [1], [Define this symbol if the BSD getentropy system call is available]) ],
|
|
||||||
[ AC_MSG_RESULT([no])]
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([for getentropy via random.h])
|
AC_MSG_CHECKING([for getentropy via random.h])
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>
|
||||||
#include <sys/random.h>]],
|
#include <sys/random.h>]],
|
||||||
|
|||||||
@@ -32,10 +32,8 @@
|
|||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include <linux/random.h>
|
#include <linux/random.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_GETENTROPY) || (defined(HAVE_GETENTROPY_RAND) && defined(MAC_OSX))
|
|
||||||
#include <unistd.h>
|
|
||||||
#endif
|
|
||||||
#if defined(HAVE_GETENTROPY_RAND) && defined(MAC_OSX)
|
#if defined(HAVE_GETENTROPY_RAND) && defined(MAC_OSX)
|
||||||
|
#include <unistd.h>
|
||||||
#include <sys/random.h>
|
#include <sys/random.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYSCTL_ARND
|
#ifdef HAVE_SYSCTL_ARND
|
||||||
|
|||||||
Reference in New Issue
Block a user