From 8fe644b289c2ad2d5e617e86f2fa75308c51f09f Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Fri, 2 Oct 1998 05:08:09 +0000 Subject: [PATCH] Define KLD_MODULE if building a KLD module. Forgot to mention that the previous commit was Submitted by: Doug Rabson --- share/mk/bsd.kmod.mk | 5 ++++- sys/conf/kmod.mk | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk index fa3ba95be18f..3c529baa920d 100644 --- a/share/mk/bsd.kmod.mk +++ b/share/mk/bsd.kmod.mk @@ -1,5 +1,5 @@ # From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 -# $Id: bsd.kmod.mk,v 1.52 1998/09/02 14:29:09 bde Exp $ +# $Id: bsd.kmod.mk,v 1.53 1998/10/02 04:51:10 msmith Exp $ # # The include file handles installing Loadable Kernel Modules. # @@ -93,6 +93,9 @@ __initialized__: .SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S CFLAGS+= ${COPTS} -DKERNEL -DACTUALLY_LKM_NOT_KERNEL ${CWARNFLAGS} +.if defined(KLDMOD) +CFLAGS+= -DKLD_MODULE +.endif # Don't use any standard or source-relative include directories. # Since -nostdinc will annull any previous -I paths, we repeat all diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index fa3ba95be18f..3c529baa920d 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -1,5 +1,5 @@ # From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 -# $Id: bsd.kmod.mk,v 1.52 1998/09/02 14:29:09 bde Exp $ +# $Id: bsd.kmod.mk,v 1.53 1998/10/02 04:51:10 msmith Exp $ # # The include file handles installing Loadable Kernel Modules. # @@ -93,6 +93,9 @@ __initialized__: .SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S CFLAGS+= ${COPTS} -DKERNEL -DACTUALLY_LKM_NOT_KERNEL ${CWARNFLAGS} +.if defined(KLDMOD) +CFLAGS+= -DKLD_MODULE +.endif # Don't use any standard or source-relative include directories. # Since -nostdinc will annull any previous -I paths, we repeat all