diff --git a/configure b/configure index 3f38929d8..6514ff54f 100755 --- a/configure +++ b/configure @@ -19762,7 +19762,7 @@ done # check if setreuid en setregid fail, on MacOSX10.4(darwin8). -if echo $build_os | grep darwin8 > /dev/null; then +if echo $target_os | grep darwin8 > /dev/null; then $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h diff --git a/configure.ac b/configure.ac index b4c484ec9..76f801948 100644 --- a/configure.ac +++ b/configure.ac @@ -1324,7 +1324,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 $build_os | grep darwin8 > /dev/null; then +if echo $target_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 f7ce2a1e6..e7c1d662d 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +6 June 2018: Wouter + - Patch to fix openwrt for mac os build darwin detection in configure. + 5 June 2018: Wouter - Fix crash if ratelimit taken into use with unbound-control instead of with unbound.conf.