summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-06-10 13:22:48 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-06-13 08:56:13 -0400
commit6f88c28c44a0b2957ecf20eac7a2853c9b6ae0ae (patch)
treeb59d95d0bbaca92af479773ae8ffc4b5b36627c8 /configure.ac
parent9fd39690be809460cafd5bd02ad2262a3695cbbf (diff)
downloadlighttpd-git-6f88c28c44a0b2957ecf20eac7a2853c9b6ae0ae.tar.gz
[core] fix compiler warnings on Mac OS X
(thx wardw)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 57e7aa5c..8c37810f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -863,7 +863,10 @@ AC_CHECK_FUNCS([dup2 getcwd inet_ntoa inet_ntop inet_pton issetugid memset mmap
getuid select signal pathconf madvise posix_fadvise posix_madvise \
writev sigaction sendfile64 send_file kqueue port_create localtime_r gmtime_r \
memset_s explicit_bzero clock_gettime pipe2 \
- getentropy arc4random_buf jrand48 srandom getloadavg])
+ arc4random_buf jrand48 srandom getloadavg])
+AC_CHECK_HEADERS([sys/random.h],[
+ AC_CHECK_FUNC([getentropy], AC_DEFINE([HAVE_GETENTROPY], [1], [getentropy]))
+])
AC_CHECK_HEADERS([linux/random.h],[
AC_CHECK_FUNC([getrandom], AC_DEFINE([HAVE_GETRANDOM], [1], [getrandom]))
])