diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2022-01-26 00:50:43 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2022-01-26 00:50:43 +0900 |
commit | 5e2d792eb8d9e5aaf1b71205f9298286b8145462 (patch) | |
tree | 1fa8a4002a741faa8f4ddb9ca10e568774563569 /configure.ac | |
parent | bafdb90d97b65db541ea917088ca956e6a364f6b (diff) | |
download | libgcrypt-5e2d792eb8d9e5aaf1b71205f9298286b8145462.tar.gz |
random: Include sys/random.h when available.
* configure.ac (AC_CHECK_HEADERS): Check sys/random.h.
* random/rndgetentropy.c [HAVE_SYS_RANDOM_H]: Include it.
--
Reported-by: Christoph Badura <bad@bsd.de>
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b870e426..73c93578 100644 --- a/configure.ac +++ b/configure.ac @@ -844,7 +844,7 @@ AC_SEARCH_LIBS(setsockopt, [nsl]) #### Checks for header files. #### ################################## -AC_CHECK_HEADERS(unistd.h sys/auxv.h) +AC_CHECK_HEADERS(unistd.h sys/auxv.h sys/random.h) ########################################## |