From a910fdcb888af1d02516d12fc9675da2fcb8c812 Mon Sep 17 00:00:00 2001 From: John Hay Date: Sat, 27 Jun 1998 07:30:45 +0000 Subject: [PATCH] Only make struct xtcpcb visable if _NETINET_IN_PCB_H_ and _SYS_SOCKETVAR_H_ are defined. Reviewed by: bde --- sys/netinet/tcp_var.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index 157631b8f831..39b87babf9d7 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_var.h 8.4 (Berkeley) 5/24/95 - * $Id: tcp_var.h,v 1.43 1998/04/24 09:25:39 dg Exp $ + * $Id: tcp_var.h,v 1.44 1998/05/15 20:11:35 wollman Exp $ */ #ifndef _NETINET_TCP_VAR_H_ @@ -288,10 +288,10 @@ struct tcpstat { /* * TCB structure exported to user-land via sysctl(3). - * Evil hack: declare only if in_pcb.h has been included. - * Not all of our clients do. + * Evil hack: declare only if in_pcb.h and sys/socketvar.h have been + * included. Not all of our clients do. */ -#ifdef _NETINET_IN_PCB_H_ +#if defined(_NETINET_IN_PCB_H_) && defined(_SYS_SOCKETVAR_H_) struct xtcpcb { size_t xt_len; struct inpcb xt_inp;