Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src MKINET6=no build fixes
details: https://anonhg.NetBSD.org/src/rev/79c8ff991d88
branches: trunk
changeset: 335000:79c8ff991d88
user: prlw1 <prlw1%NetBSD.org@localhost>
date: Sat Dec 20 13:15:48 2014 +0000
description:
MKINET6=no build fixes
http://mail-index.netbsd.org/tech-net/2014/12/13/msg004898.html
diffstat:
external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c | 2 +-
external/bsd/dhcpcd/dist/dhcpcd.c | 5 ++-
external/bsd/ipf/dist/lib/printhost.c | 4 +-
external/bsd/ipf/dist/lib/printhostmask.c | 4 +-
external/bsd/ipf/dist/lib/printipfexpr.c | 4 ++-
external/bsd/ipf/dist/lib/save_v1trap.c | 4 +-
external/bsd/ipf/dist/lib/save_v2trap.c | 4 +-
external/bsd/ipf/dist/tools/lexer.c | 10 +++++++-
external/bsd/ntp/dist/ntpd/ntp_io.c | 4 +-
external/bsd/ppp/usr.sbin/pppd/sys-bsd.c | 2 +
external/bsd/tcpdump/bin/Makefile | 5 +--
sbin/route/route.c | 12 +++++++---
usr.sbin/lpr/common_source/Makefile | 8 ++++++-
usr.sbin/lpr/common_source/common.c | 17 ++++++++------
14 files changed, 55 insertions(+), 30 deletions(-)
diffs (truncated from 359 to 300 lines):
diff -r 588d49783dcc -r 79c8ff991d88 external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c
--- a/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSPosix.c Sat Dec 20 13:15:48 2014 +0000
@@ -718,7 +718,7 @@
err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_RECVPKTINFO, &kOn, sizeof(kOn));
if (err < 0) { err = errno; perror("setsockopt - IPV6_RECVPKTINFO"); }
}
-#elif defined(IPV6_PKTINFO)
+ #elif defined(IPV6_PKTINFO)
if (err == 0)
{
err = setsockopt(*sktPtr, IPPROTO_IPV6, IPV6_PKTINFO, &kOn, sizeof(kOn));
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/dhcpcd/dist/dhcpcd.c
--- a/external/bsd/dhcpcd/dist/dhcpcd.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/dhcpcd/dist/dhcpcd.c Sat Dec 20 13:15:48 2014 +0000
@@ -1,5 +1,5 @@
#include <sys/cdefs.h>
- __RCSID("$NetBSD: dhcpcd.c,v 1.20 2014/12/19 10:54:08 roy Exp $");
+ __RCSID("$NetBSD: dhcpcd.c,v 1.21 2014/12/20 13:15:48 prlw1 Exp $");
/*
* dhcpcd - DHCP client daemon
@@ -745,8 +745,9 @@
!(ifo->options & (DHCPCD_INFORM | DHCPCD_PFXDLGONLY)))
ipv6nd_startrs(ifp);
- if (ifo->options & DHCPCD_DHCP6)
+ if (ifo->options & DHCPCD_DHCP6) {
dhcp6_find_delegates(ifp);
+ }
if (!(ifo->options & DHCPCD_IPV6RS) ||
ifo->options & DHCPCD_IA_FORCED)
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/ipf/dist/lib/printhost.c
--- a/external/bsd/ipf/dist/lib/printhost.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/ipf/dist/lib/printhost.c Sat Dec 20 13:15:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: printhost.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $ */
+/* $NetBSD: printhost.c,v 1.3 2014/12/20 13:15:48 prlw1 Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -25,9 +25,9 @@
if ((family == -1) || !*addr)
PRINTF("any");
else {
+#ifdef USE_INET6
void *ptr = addr;
-#ifdef USE_INET6
PRINTF("%s", inet_ntop(family, ptr, ipbuf, sizeof(ipbuf)));
#else
ipa.s_addr = *addr;
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/ipf/dist/lib/printhostmask.c
--- a/external/bsd/ipf/dist/lib/printhostmask.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/ipf/dist/lib/printhostmask.c Sat Dec 20 13:15:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: printhostmask.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $ */
+/* $NetBSD: printhostmask.c,v 1.3 2014/12/20 13:15:48 prlw1 Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -25,9 +25,9 @@
if ((family == -1) || ((!addr || !*addr) && (!mask || !*mask)))
PRINTF("any");
else {
+#ifdef USE_INET6
void *ptr = addr;
-#ifdef USE_INET6
PRINTF("%s", inet_ntop(family, ptr, ipbuf, sizeof(ipbuf)));
#else
ipa.s_addr = *addr;
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/ipf/dist/lib/printipfexpr.c
--- a/external/bsd/ipf/dist/lib/printipfexpr.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/ipf/dist/lib/printipfexpr.c Sat Dec 20 13:15:48 2014 +0000
@@ -1,11 +1,13 @@
-/* $NetBSD: printipfexpr.c,v 1.1.1.2 2012/07/22 13:44:41 darrenr Exp $ */
+/* $NetBSD: printipfexpr.c,v 1.2 2014/12/20 13:15:48 prlw1 Exp $ */
#include "ipf.h"
static void printport __P((int *));
static void printhosts __P((int *));
static void printsingle __P((int *));
+#ifdef USE_INET6
static void printhostsv6 __P((int *));
+#endif
void
printipfexpr(array)
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/ipf/dist/lib/save_v1trap.c
--- a/external/bsd/ipf/dist/lib/save_v1trap.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/ipf/dist/lib/save_v1trap.c Sat Dec 20 13:15:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: save_v1trap.c,v 1.1.1.2 2012/07/22 13:44:42 darrenr Exp $ */
+/* $NetBSD: save_v1trap.c,v 1.2 2014/12/20 13:15:48 prlw1 Exp $ */
#include "ipf.h"
#include "netinet/ipl.h"
@@ -180,7 +180,7 @@
if (ctx->fd >= 0) {
ctx->sin.sin_family = AF_INET;
ctx->sin.sin_port = htons(162);
- if (connect(ctx->fd, &ctx->sin,
+ if (connect(ctx->fd, (struct sockaddr *)&ctx->sin,
sizeof(ctx->sin)) != 0) {
snmpv1_destroy(ctx);
return NULL;
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/ipf/dist/lib/save_v2trap.c
--- a/external/bsd/ipf/dist/lib/save_v2trap.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/ipf/dist/lib/save_v2trap.c Sat Dec 20 13:15:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: save_v2trap.c,v 1.1.1.2 2012/07/22 13:44:43 darrenr Exp $ */
+/* $NetBSD: save_v2trap.c,v 1.2 2014/12/20 13:15:48 prlw1 Exp $ */
#include "ipf.h"
#include "netinet/ipl.h"
@@ -183,7 +183,7 @@
if (ctx->fd >= 0) {
ctx->sin.sin_family = AF_INET;
ctx->sin.sin_port = htons(162);
- if (connect(ctx->fd, &ctx->sin,
+ if (connect(ctx->fd, (struct sockaddr *)&ctx->sin,
sizeof(ctx->sin)) != 0) {
snmpv2_destroy(ctx);
return NULL;
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/ipf/dist/tools/lexer.c
--- a/external/bsd/ipf/dist/tools/lexer.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/ipf/dist/tools/lexer.c Sat Dec 20 13:15:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lexer.c,v 1.1.1.2 2012/07/22 13:44:59 darrenr Exp $ */
+/* $NetBSD: lexer.c,v 1.2 2014/12/20 13:15:48 prlw1 Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -176,8 +176,10 @@
int yylex()
{
+#ifdef USE_INET6
static int prior = 0;
static int priornum = 0;
+#endif
int c, n, isbuilding, rval, lnext, nokey = 0;
char *name;
int triedv6 = 0;
@@ -239,7 +241,9 @@
if (lnext == 1) {
lnext = 0;
if ((isbuilding == 0) && !ISALNUM(c)) {
+#ifdef USE_INET6
prior = c;
+#endif
return c;
}
goto nextchar;
@@ -330,7 +334,9 @@
yytokentype = 0;
if (yydebug)
fprintf(stderr, "reset at EOF\n");
+#ifdef USE_INET6
prior = 0;
+#endif
return 0;
}
@@ -594,9 +600,11 @@
yypos = 0;
}
+#ifdef USE_INET6
if (rval == YY_NUMBER)
priornum = yylval.num;
prior = rval;
+#endif
return rval;
}
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/ntp/dist/ntpd/ntp_io.c
--- a/external/bsd/ntp/dist/ntpd/ntp_io.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/ntp/dist/ntpd/ntp_io.c Sat Dec 20 13:15:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntp_io.c,v 1.15 2014/12/19 20:43:17 christos Exp $ */
+/* $NetBSD: ntp_io.c,v 1.16 2014/12/20 13:15:48 prlw1 Exp $ */
/*
* ntp_io.c - input/output routines for ntpd. The socket-opening code
@@ -2356,7 +2356,7 @@
#ifdef IP_MULTICAST_LOOP
TYPEOF_IP_MULTICAST_LOOP off = 0;
#endif
-#ifdef IPV6_MULTICAST_LOOP
+#if defined(INCLUDE_IPV6_MULTICAST_SUPPORT) && defined(IPV6_MULTICAST_LOOP)
u_int off6 = 0;
#endif
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/ppp/usr.sbin/pppd/sys-bsd.c
--- a/external/bsd/ppp/usr.sbin/pppd/sys-bsd.c Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/ppp/usr.sbin/pppd/sys-bsd.c Sat Dec 20 13:15:48 2014 +0000
@@ -189,7 +189,9 @@
static int max_in_fd; /* highest fd set in in_fds */
static int if_is_up; /* the interface is currently up */
+#ifdef INET6
static int if6_is_up; /* the interface is currently up */
+#endif /* INET6 */
static u_int32_t ifaddrs[2]; /* local and remote addresses we set */
static u_int32_t default_route_gateway; /* gateway addr for default route */
static u_int32_t proxy_arp_addr; /* remote addr for proxy arp */
diff -r 588d49783dcc -r 79c8ff991d88 external/bsd/tcpdump/bin/Makefile
--- a/external/bsd/tcpdump/bin/Makefile Sat Dec 20 13:13:58 2014 +0000
+++ b/external/bsd/tcpdump/bin/Makefile Sat Dec 20 13:15:48 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2014/11/20 03:05:03 christos Exp $
+# $NetBSD: Makefile,v 1.12 2014/12/20 13:15:48 prlw1 Exp $
WARNS?= 1 # XXX: need to cleanup later
@@ -35,7 +35,6 @@
print-ascii.c \
print-atalk.c \
print-atm.c \
-print-babel.c \
print-beep.c \
print-bfd.c \
print-bgp.c \
@@ -172,7 +171,7 @@
CPPFLAGS+=-DWITH_CHROOT=\"/var/chroot/tcpdump\"
.if (${USE_INET6} != "no")
-SRCS+= print-ip6.c print-ip6opts.c print-icmp6.c \
+SRCS+= print-babel.c print-ip6.c print-ip6opts.c print-icmp6.c \
print-rt6.c print-dhcp6.c print-ospf6.c
CPPFLAGS+=-DINET6=1 -DHAVE_RES_USE_INET6=1
diff -r 588d49783dcc -r 79c8ff991d88 sbin/route/route.c
--- a/sbin/route/route.c Sat Dec 20 13:13:58 2014 +0000
+++ b/sbin/route/route.c Sat Dec 20 13:15:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.148 2014/12/17 10:56:09 roy Exp $ */
+/* $NetBSD: route.c,v 1.149 2014/12/20 13:15:48 prlw1 Exp $ */
/*
* Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: route.c,v 1.148 2014/12/17 10:56:09 roy Exp $");
+__RCSID("$NetBSD: route.c,v 1.149 2014/12/20 13:15:48 prlw1 Exp $");
#endif
#endif /* not lint */
@@ -1033,8 +1033,10 @@
int
prefixlen(const char *s, struct sou *soup)
{
- int len = atoi(s), q, r;
- int max;
+ int max, len = atoi(s);
+#ifdef INET6
+ int q, r;
+#endif
switch (af) {
case AF_INET:
@@ -1054,8 +1056,10 @@
if (len < -1 || len > max)
errx(EXIT_FAILURE, "%s: bad value", s);
+#ifdef INET6
q = len >> 3;
r = len & 7;
+#endif
switch (af) {
case AF_INET:
memset(soup->so_mask, 0, sizeof(*soup->so_mask));
diff -r 588d49783dcc -r 79c8ff991d88 usr.sbin/lpr/common_source/Makefile
--- a/usr.sbin/lpr/common_source/Makefile Sat Dec 20 13:13:58 2014 +0000
+++ b/usr.sbin/lpr/common_source/Makefile Sat Dec 20 13:15:48 2014 +0000
@@ -1,8 +1,14 @@
-# $NetBSD: Makefile,v 1.11 2008/05/03 14:48:32 lukem Exp $
+# $NetBSD: Makefile,v 1.12 2014/12/20 13:15:48 prlw1 Exp $
+
+.include <bsd.own.mk>
LIBISPRIVATE= yes
LIB= common
SRCS= common.c common_vars.c displayq.c fatal.c rmjob.c startdaemon.c
+.if (${USE_INET6} != "no")
+CPPFLAGS.common.c= -DINET6
+.endif
+
.include <bsd.lib.mk>
diff -r 588d49783dcc -r 79c8ff991d88 usr.sbin/lpr/common_source/common.c
--- a/usr.sbin/lpr/common_source/common.c Sat Dec 20 13:13:58 2014 +0000
+++ b/usr.sbin/lpr/common_source/common.c Sat Dec 20 13:15:48 2014 +0000
Home |
Main Index |
Thread Index |
Old Index