From owner-freebsd-current Thu Jun 25 12:29:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA10410 for freebsd-current-outgoing; Thu, 25 Jun 1998 12:29:57 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA10120 for ; Thu, 25 Jun 1998 12:28:16 -0700 (PDT) (envelope-from jhay@zibbi.mikom.csir.co.za) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.9.0/8.9.0) id VAA11474 for FreeBSD-current@FreeBSD.ORG; Thu, 25 Jun 1998 21:28:04 +0200 (SAT) From: John Hay Message-Id: <199806251928.VAA11474@zibbi.mikom.csir.co.za> Subject: expanding the hack in netinet/tcp_var.h To: FreeBSD-current@FreeBSD.ORG Date: Thu, 25 Jun 1998 21:28:04 +0200 (SAT) X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Is there anybody that will mind if I extend the "evil hack" in tcp_var.h? Or are you suppose to include sys/socketvar.h before you include netinet/ tcp_var.h, if you also have included netinet/in_pcb.h? The only thing that needs socketvar.h is struct xsocket. This patch makes ucd-snmp-3.5 compile again. -- John Hay -- John.Hay@mikom.csir.co.za --- /sys/netinet/tcp_var.h Sat May 16 14:08:15 1998 +++ /usr/include/netinet/tcp_var.h Thu Jun 25 21:15:41 1998 @@ -284,18 +284,18 @@ u_long tcps_badsyn; /* bogus SYN, e.g. premature ACK */ u_long tcps_mturesent; /* resends due to MTU discovery */ u_long tcps_listendrop; /* listen queue overflows */ }; /* * 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 has 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; struct tcpcb xt_tp; struct xsocket xt_socket; u_quad_t xt_alignment_hack; }; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message