Subject: kern/2229: typo in /src/sys/sys/param.h
To: None <gnats-bugs@NetBSD.ORG>
From: Thorsten Frueauf <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 03/17/1996 16:43:07
>Number:         2229
>Category:       kern
>Synopsis:       typo in /src/sys/sys/param.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 17 11:05:04 1996
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
>Release:        <NetBSD-current source date> NetBSD current 16.03.1996
>Environment:
	
System: NetBSD di_frueauf 1.1A NetBSD 1.1A (CYBERDYNE) #2: Sat Mar 16 05:02:21 GMT 1996 milano@di_frueauf:/home/milano/source/netbsd-src/sys/arch/amiga/compile/CYBERDYNE amiga


>Description:
	
/src/sys/sys/param.h contains a typo which breaks e.g. the `make depend`
in /src/lib/libkvm.old.

>How-To-Repeat:
	

Try `make depend` in /src/sys/libkvm.old and watch:

mkdep -a -DLIBC_SCCS -Damiga /src/lib/libkvm.old/kvm_m68k.c /src/lib/libkvm.old/
kvm.c /src/lib/libkvm.old/kvm_file.c /src/lib/libkvm.old/kvm_getloadavg.c /src/l
ib/libkvm.old/kvm_proc.c
In file included from /src/lib/libkvm.old/kvm_m68k.c:48:
/usr/include/sys/param.h:54: unterminated `#if' conditional
In file included from /src/lib/libkvm.old/kvm.c:42:
/usr/include/sys/param.h:54: unterminated `#if' conditional
In file included from /src/lib/libkvm.old/kvm_file.c:45:
/usr/include/sys/param.h:54: unterminated `#if' conditional
In file included from /src/lib/libkvm.old/kvm_getloadavg.c:38:
/usr/include/sys/param.h:54: unterminated `#if' conditional
In file included from /src/lib/libkvm.old/kvm_proc.c:50:
/usr/include/sys/param.h:54: unterminated `#if' conditional

>Fix:
	
Apply the following patch:

*** param.h-orig        Sun Mar 17 15:58:01 1996
--- param.h     Sun Mar 17 16:14:29 1996
***************
*** 53,59 ****
  
  #ifndef _LOCORE
  #include <sys/types.h>
! #eandif
  
  /*
   * Machine-independent constants (some used in following include files).
--- 53,59 ----
  
  #ifndef _LOCORE
  #include <sys/types.h>
! #endif
  
  /*
   * Machine-independent constants (some used in following include files).
>Audit-Trail:
>Unformatted: