From: Otto Moerbeek Date: Tue, 20 Jun 2023 10:01:54 +0000 (+0200) Subject: Tweaks for macOS X-Git-Tag: rec-5.0.0-alpha1~125^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f87175b0e2714ec42b94f90b7d4070dd7c5e74dc;p=thirdparty%2Fpdns.git Tweaks for macOS --- diff --git a/configure.ac b/configure.ac index ca8ac283c8..3d1969078c 100644 --- a/configure.ac +++ b/configure.ac @@ -84,6 +84,9 @@ AC_CHECK_HEADERS( )], [have_mmap=no] ) +AC_CHECK_HEADERS([ + sys/random.h +]) PDNS_WITH_LIBSODIUM PDNS_WITH_LIBDECAF diff --git a/ext/arc4random/includes.h b/ext/arc4random/includes.h index 8914c12aa9..8d17335b67 100644 --- a/ext/arc4random/includes.h +++ b/ext/arc4random/includes.h @@ -1,8 +1,8 @@ #include "config.h" -#ifdef HAVE_GETRANDOM -#include -#endif +//#ifdef HAVE_SYS_RANDOM_H +//#include +//#endif #include #include diff --git a/pdns/dnsdistdist/configure.ac b/pdns/dnsdistdist/configure.ac index 6e758c63d7..501f87a6a3 100644 --- a/pdns/dnsdistdist/configure.ac +++ b/pdns/dnsdistdist/configure.ac @@ -56,6 +56,10 @@ AC_SUBST([IPCRYPT_CFLAGS], ['-I$(top_srcdir)/ext/ipcrypt']) AC_SUBST([IPCRYPT_LIBS], ['$(top_builddir)/ext/ipcrypt/libipcrypt.la']) AC_SUBST([ARC4RANDOM_LIBS], ['$(top_builddir)/ext/arc4random/libarc4random.la']) +AC_CHECK_HEADERS([ + sys/random.h +]) + PDNS_WITH_LUA([mandatory]) AS_IF([test "x$LUAPC" = "xluajit"], [ # export all symbols with default visibility, to be able to use the Lua FFI interface diff --git a/pdns/recursordist/configure.ac b/pdns/recursordist/configure.ac index 52bc6d8934..3f455a7f5d 100644 --- a/pdns/recursordist/configure.ac +++ b/pdns/recursordist/configure.ac @@ -115,6 +115,10 @@ dnl using the defines. AC_CHECK_FUNCS_ONCE([localtime_r gmtime_r strcasestr]) AC_CHECK_FUNCS_ONCE([getrandom getentropy arc4random arc4random_uniform arc4random_buf]) +AC_CHECK_HEADERS([ + sys/random.h +]) + PDNS_CHECK_PTHREAD_NP AC_SUBST([socketdir])