Subject: kern/5717: if_strip.c doesn't compile
To: None <>
From: Dave Huang <>
List: netbsd-bugs
Date: 07/06/1998 18:22:23
>Number:         5717
>Category:       kern
>Synopsis:       if_strip.c doesn't compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul  6 16:35:00 1998
>Originator:     Dave Huang
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet:   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 22 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        NetBSD-current as of July 6, 1998
System: NetBSD 1.3F NetBSD 1.3F (SPIFF) #230: Mon Jul 6 17:30:16 CDT 1998 i386

	Line 126 of if_strip.c does an "#if INET" instead of "#ifdef
INET". This causes the compile to fail with:
cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DSYSVMSG -DSYSVSEM -DSYSVSHM -DLKM -DDIAGNOSTIC -DCOMPAT_43 -DMAXUSERS=32 -D_KERNEL  -Di386  -c ../../../../net/if_strip.c
../../../../net/if_strip.c:126: syntax error
../../../../net/if_strip.c:132: #error Starmode Radio IP configured without configuring inet?
*** Error code 1


	Compile a kernel with the strip driver. (Such as the i386 GENERIC).
--- /usr/src/sys/net/if_strip.c	Sun Jul  5 06:11:43 1998
+++ if_strip.c	Mon Jul  6 18:14:05 1998
@@ -123,7 +123,7 @@
 #include <net/netisr.h>
 #include <net/route.h>
-#if INET
+#ifdef INET
 #include <netinet/in.h>
 #include <netinet/in_systm.h>
 #include <netinet/in_var.h>