[Git][NTPsec/ntpsec][master] Attempt to repair Mac OS X build.

Eric S. Raymond gitlab at mg.gitlab.com
Sun Nov 6 12:46:12 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
13c11c6e by Eric S. Raymond at 2016-11-06T07:46:02-05:00
Attempt to repair Mac OS X build.

- - - - -


1 changed file:

- ntpdig/main.c


Changes:

=====================================
ntpdig/main.c
=====================================
--- a/ntpdig/main.c
+++ b/ntpdig/main.c
@@ -466,9 +466,9 @@ open_sockets(
 	}
 
 	/* We may not always have IPv6... */
-	if (-1 == sock6 && ipv6_works) {
+	if (-1 == sock6 && isc_net_probeipv6_bool()) {
 		sock6 = socket(PF_INET6, SOCK_DGRAM, 0);
-		if (-1 == sock6 && ipv6_works) {
+		if (-1 == sock6 && isc_net_probeipv6_bool()) {
 			/* error getting a socket */
 			msyslog(LOG_ERR, "open_sockets: socket(PF_INET6) failed: %m");
 			exit(1);
@@ -623,7 +623,7 @@ ntpdig_name_resolved(
 				break;
 
 			case AF_INET6:
-				if (!ipv6_works)
+				if (!isc_net_probeipv6_bool())
 					continue;
 
 				sock = sock6;



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/13c11c6e174d3fad386b5436f303733166ec8b2d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161106/1e73f670/attachment.html>


More information about the vc mailing list