Fixes for getrandom detection

This commit is contained in:
Lealem Amedie
2025-11-06 14:16:38 -07:00
parent d3de6305e8
commit 2b8f83fd8d
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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 */