mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 15:02:24 +01:00
Fixes for getrandom detection
This commit is contained in:
@@ -139,7 +139,7 @@ AC_ARG_ENABLE([linuxkm-defaults],
|
||||
)
|
||||
|
||||
|
||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stddef.h time.h sys/ioctl.h sys/socket.h sys/time.h errno.h sys/un.h ctype.h])
|
||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stddef.h time.h sys/ioctl.h sys/socket.h sys/time.h errno.h sys/un.h ctype.h sys/random.h])
|
||||
AC_CHECK_LIB([network],[socket])
|
||||
AC_C_BIGENDIAN
|
||||
AC_C___ATOMIC
|
||||
@@ -186,6 +186,9 @@ fi
|
||||
#ifdef HAVE_CTYPE_H
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_RANDOM_H
|
||||
#include <sys/random.h>
|
||||
#endif
|
||||
]])
|
||||
|
||||
AC_PROG_INSTALL
|
||||
|
||||
@@ -4256,6 +4256,8 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
||||
}
|
||||
close(os->fd);
|
||||
#else
|
||||
(void)output;
|
||||
(void)sz;
|
||||
ret = NOT_COMPILED_IN;
|
||||
#endif /* NO_FILESYSTEM */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user