]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Use host_os instead of target_os in configure for Darwin8 build.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Wed, 9 Jun 2021 14:36:19 +0000 (16:36 +0200)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Wed, 9 Jun 2021 14:36:19 +0000 (16:36 +0200)
configure
configure.ac
doc/Changelog

index 274889824a4fc0a0c002f14874ac944cc5caf5ef..0a03ab5de60d35b4f1accd7546bbfa60e6b32d3b 100755 (executable)
--- 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
 
index f5e9d8168b76c5d03ee2ca3b5cba606f5ce4c599..746966f06380f9b742e428dc5bdfe60603b0d383 100644 (file)
@@ -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], [], [], [
index 91d8156f10d9e70bdf21b752d7aeee3e3b41f42a..c52c841036f32e76c03d9cfd647c4c3b27267b23 100644 (file)
@@ -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.