From fcde5c8d548a75818245c6ef1cf1c38f96890c16 Mon Sep 17 00:00:00 2001 From: George Thessalonikefs Date: Wed, 9 Jun 2021 16:36:19 +0200 Subject: [PATCH] - Use host_os instead of target_os in configure for Darwin8 build. --- configure | 2 +- configure.ac | 2 +- doc/Changelog | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 274889824..0a03ab5de 100755 --- a/configure +++ b/configure @@ -20441,7 +20441,7 @@ done # check if setreuid en setregid fail, on MacOSX10.4(darwin8). -if echo $target_os | grep darwin8 > /dev/null; then +if echo $host_os | grep darwin8 > /dev/null; then $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h diff --git a/configure.ac b/configure.ac index f5e9d8168..746966f06 100644 --- a/configure.ac +++ b/configure.ac @@ -1593,7 +1593,7 @@ AC_CHECK_FUNCS([setresuid],,[AC_CHECK_FUNCS([setreuid])]) AC_CHECK_FUNCS([setresgid],,[AC_CHECK_FUNCS([setregid])]) # check if setreuid en setregid fail, on MacOSX10.4(darwin8). -if echo $target_os | grep darwin8 > /dev/null; then +if echo $host_os | grep darwin8 > /dev/null; then AC_DEFINE(DARWIN_BROKEN_SETREUID, 1, [Define this if on macOSX10.4-darwin8 and setreuid and setregid do not work]) fi AC_CHECK_DECLS([inet_pton,inet_ntop], [], [], [ diff --git a/doc/Changelog b/doc/Changelog index 91d8156f1..c52c84103 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ - Generated lexer and parser for #486; updated example.conf. - Fix #413 (based on patch by k-ronny): unbound: does not compile on macOS 11.1-x86_64 host. + - Use host_os instead of target_os in configure for Darwin8 build. 8 June 2021: George - Fix unused variable warning when compiling with --enable-dnstap. -- 2.47.2