From: Wouter Wijngaards Date: Wed, 6 Jun 2018 05:31:12 +0000 (+0000) Subject: - Patch to fix openwrt for mac os build darwin detection in configure. X-Git-Tag: release-1.7.3rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1bfc07105ce2c7c032f965991fd9e4f32c77713;p=thirdparty%2Funbound.git - Patch to fix openwrt for mac os build darwin detection in configure. git-svn-id: file:///svn/unbound/trunk@4713 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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.