Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Fix build of kernels without both INET and INET6



details:   https://anonhg.NetBSD.org/src/rev/7da720d549ef
branches:  trunk
changeset: 824939:7da720d549ef
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Fri Jun 23 04:27:55 2017 +0000

description:
Fix build of kernels without both INET and INET6

diffstat:

 sys/net/rtsock.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 5bed3e4e155b -r 7da720d549ef sys/net/rtsock.c
--- a/sys/net/rtsock.c  Fri Jun 23 02:16:39 2017 +0000
+++ b/sys/net/rtsock.c  Fri Jun 23 04:27:55 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtsock.c,v 1.217 2017/06/22 09:58:04 ozaki-r Exp $     */
+/*     $NetBSD: rtsock.c,v 1.218 2017/06/23 04:27:55 ozaki-r Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.217 2017/06/22 09:58:04 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.218 2017/06/23 04:27:55 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -712,6 +712,8 @@
        if (ifp_changed && rt_mask(rt) != NULL)
                lltable_prefix_free(rt_getkey(rt)->sa_family, rt_getkey(rt),
                    rt_mask(rt), 0);
+#else
+       (void)ifp_changed; /* XXX gcc */
 #endif
 out:
        if_put(ifp, &psref_ifp);



Home | Main Index | Thread Index | Old Index