Subject: kern/3524: netinet/in_systm.h should protect itself
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael C. Richardson <mcr@sandelman.ottawa.on.ca>
List: netbsd-bugs
Date: 04/22/1997 10:54:08
>Number:         3524
>Category:       kern
>Synopsis:       netinet/in_systm.h should protect against double inclusion
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 22 08:05:00 1997
>Last-Modified:
>Originator:     Michael C. Richardson
>Organization:
Sandelman Software Works
>Release:        1.2
>Environment:
System: NetBSD istari.sandelman.ottawa.on.ca 1.2D NetBSD 1.2D (SSW) #5: Wed Apr 16 15:33:15 EDT 1997 mcr@istari.sandelman.ottawa.on.ca:/j/netbsd/src/sys/arch/i386/compile/SSW i386
Architecture: i386

>Description:
	This should be done for all system .h files.
>How-To-Repeat:
	#include <netinet/in_systm.h>
	#include <netinet/in_systm.h>
>Fix:
*** /usr/src/sys/netinet/in_systm.h	Fri Oct 13 22:51:03 1995
--- in_systm.h	Mon Apr 21 18:25:20 1997
***************
*** 35,40 ****
--- 35,43 ----
   *	@(#)in_systm.h	8.1 (Berkeley) 6/10/93
   */
  
+ #ifndef _NETINET_IN_SYSTM_H_
+ #define _NETINET_IN_SYSTM_H_
+ 
  /*
   * Miscellaneous internetwork
   * definitions for kernel.
***************
*** 55,58 ****
--- 58,63 ----
  
  #ifdef _KERNEL
  n_time	 iptime __P((void));
+ #endif
+ 
  #endif
>Audit-Trail:
>Unformatted: