From owner-freebsd-current Thu Jun 13 02:54:10 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA10553 for current-outgoing; Thu, 13 Jun 1996 02:54:10 -0700 (PDT) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.eu.org [193.56.58.253]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA10546 for ; Thu, 13 Jun 1996 02:54:06 -0700 (PDT) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.eu.org [193.56.58.33]) by mexico.brainstorm.eu.org (8.7.5/8.7.3) with ESMTP id LAA28600 for ; Thu, 13 Jun 1996 11:54:03 +0200 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.6.12/8.6.12) with UUCP id LAA30485 for freebsd-current@FreeBSD.ORG; Thu, 13 Jun 1996 11:53:13 +0200 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.Alpha.4/keltia-uucp-2.8) id LAA15818 for freebsd-current@FreeBSD.ORG; Thu, 13 Jun 1996 11:50:50 +0200 (MET DST) From: Ollivier Robert Message-Id: <199606130950.LAA15818@keltia.freenix.fr> Subject: #include opt_ipfw.h problem for lkm To: freebsd-current@freebsd.org (FreeBSD Current Users' list) Date: Thu, 13 Jun 1996 11:50:49 +0200 (MET DST) X-Operating-System: FreeBSD 2.2-CURRENT ctm#2103 X-Mailer: ELM [version 2.4ME+ PL19 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk sys/netinet/ip_fw.c includes "opt_ipfw.h" when compiling the kernel (which is fine) but includes it also when compiling as lkm (which is bad). That breaks "make depend" and "make world". Index: sys/netinet/ip_fw.c =================================================================== RCS file: /spare/FreeBSD-current/src/sys/netinet/ip_fw.c,v retrieving revision 1.38 diff -u -2 -u -r1.38 ip_fw.c --- ip_fw.c 1996/06/12 19:34:33 1.38 +++ ip_fw.c 1996/06/13 09:43:12 @@ -20,5 +20,7 @@ */ +#ifndef ACTUALLY_LKM_NOT_KERNEL #include "opt_ipfw.h" +#endif #include -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 2.2-CURRENT #10: Tue Jun 11 13:36:57 MET DST 1996