summaryrefslogtreecommitdiffstats
path: root/sys/modules/procfs/Makefile
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2005-08-18 14:50:08 +0000
committeryar <yar@FreeBSD.org>2005-08-18 14:50:08 +0000
commit917de9de52530b7fcdbfb010bffbac91bc359517 (patch)
treeaa58a405f319a6e710e8683c19cb640aa4cf615b /sys/modules/procfs/Makefile
parentccdb1d5d69eb7f18e9ce102431254d9e5a2c8256 (diff)
downloadFreeBSD-src-917de9de52530b7fcdbfb010bffbac91bc359517.zip
FreeBSD-src-917de9de52530b7fcdbfb010bffbac91bc359517.tar.gz
Define the target for opt_compat.h only if KERNBUILDDIR
is not defined, so that the module will get the compatibility options from the current kernel configuration if built with the latter, not with the world. [Some other modules seem in need of fixing WRT this, too.] Add more compatibility options found in GENERIC to the default opt_compat.h. While not all of them are used in the procfs code, we can't tell for sure if the system .h files don't need them either, so let's stay on the safe side. Submitted by: kensmith Reviewed by: ru
Diffstat (limited to 'sys/modules/procfs/Makefile')
-rw-r--r--sys/modules/procfs/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/modules/procfs/Makefile b/sys/modules/procfs/Makefile
index cb96c1b..48a3e02 100644
--- a/sys/modules/procfs/Makefile
+++ b/sys/modules/procfs/Makefile
@@ -27,10 +27,15 @@ EXPORT_SYMS+= procfs_doprocfile
EXPORT_SYMS+= procfs_doprocmem
EXPORT_SYMS+= procfs_notsystem
+.if !defined(KERNBUILDDIR)
opt_compat.h:
echo "#define COMPAT_43 1" > ${.TARGET}
+ echo "#define COMPAT_FREEBSD4 1" >> ${.TARGET}
+ echo "#define COMPAT_FREEBSD5 1" >> ${.TARGET}
.if ${MACHINE_ARCH} == "amd64"
echo "#define COMPAT_IA32 1" >> ${.TARGET}
+ echo "#define COMPAT_LINUX32 1" >> ${.TARGET}
+.endif
.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud