Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet apply a #ifdef INET6 so the previous compiles wi...



details:   https://anonhg.NetBSD.org/src/rev/bfba7aca20e3
branches:  trunk
changeset: 348921:bfba7aca20e3
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Nov 15 22:23:09 2016 +0000

description:
apply a #ifdef INET6 so the previous compiles without INET6.

diffstat:

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

diffs (28 lines):

diff -r 27e75cd44529 -r bfba7aca20e3 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Tue Nov 15 21:50:38 2016 +0000
+++ b/sys/netinet/tcp_input.c   Tue Nov 15 22:23:09 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.348 2016/11/15 20:50:28 mlelstv Exp $  */
+/*     $NetBSD: tcp_input.c,v 1.349 2016/11/15 22:23:09 mrg Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.348 2016/11/15 20:50:28 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.349 2016/11/15 22:23:09 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1357,7 +1357,9 @@
                        return;
                }
                ip = mtod(m, struct ip *);
+#ifdef INET6
                ip6 = mtod(m, struct ip6_hdr *);
+#endif
                th = (struct tcphdr *)(mtod(m, char *) + toff);
        }
        KASSERT(TCP_HDR_ALIGNED_P(th));



Home | Main Index | Thread Index | Old Index