]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
* Fix build error on Solaris 10 with inet_ntop redeclaration error.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 3 Jan 2022 12:26:02 +0000 (13:26 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 3 Jan 2022 12:26:02 +0000 (13:26 +0100)
Changelog
configure.ac

index 0e4bcf5228ee2a1bd1edfe7907b39824b4b052ae..dfee2106735652793020094ab67a605ddc9a62b4 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -3,6 +3,7 @@
          fields. Thanks Felipe Gasper
        * bugfix #149: Add some missing [out] annotations to doxygen
          parameters. Thanks aldot.
+       * Fix build error on Solaris 10 with inet_ntop redeclaration error.
 
 1.8.1  2021-12-03
        * bugfix #146: ldns-1.7.1 had soname 3.0, so ldns-1.8.x soname
index 840a1d64f194b8e04503b86ceed265865fd34bc3..f36ffe775a0ba8924bb2e5b2ecc31a5eb81dc2b5 100644 (file)
@@ -136,7 +136,7 @@ AC_CHECK_FUNC([socket],
 # older Solaris provides inet_ntop in -lresolv.
 AC_CHECK_FUNC([inet_ntop],
     [],
-    [AC_SEARCH_LIBS([inet_ntop], [socket c nsl resolv])
+    [AC_SEARCH_LIBS([inet_ntop], [socket c nsl resolv], [ac_cv_func_inet_ntop=yes])
 ])
 
 # modern Linux provides inet_pton in -lsocket.
@@ -145,7 +145,7 @@ AC_CHECK_FUNC([inet_ntop],
 # older Solaris provides inet_pton in -lresolv.
 AC_CHECK_FUNC([inet_pton],
     [],
-    [AC_SEARCH_LIBS([inet_pton], [socket c nsl resolv])
+    [AC_SEARCH_LIBS([inet_pton], [socket c nsl resolv], [ac_cv_func_inet_pton=yes])
 ])