Fix stand-alone (or MODULES_WITH_WORLD=1) build of

the procfs module by creating opt_compat.h with
appropriate compatibility options: COMPAT_43 on all
arch's and COMPAT_IA32 in addition on amd64.

Pointy hat to:	peter
MFC after:	3 days
This commit is contained in:
Yaroslav Tykhiy 2005-08-11 14:45:10 +00:00
parent 8573cb38b6
commit e168b357aa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148960

View file

@ -3,7 +3,7 @@
.PATH: ${.CURDIR}/../../fs/procfs
KMOD= procfs
SRCS=
SRCS= opt_compat.h
SRCS+= vnode_if.h
SRCS+= procfs_ctl.c
SRCS+= procfs_dbregs.c
@ -26,4 +26,10 @@ EXPORT_SYMS+= procfs_doprocfile
EXPORT_SYMS+= procfs_doprocmem
EXPORT_SYMS+= procfs_notsystem
opt_compat.h:
echo "#define COMPAT_43 1" > ${.TARGET}
.if ${MACHINE_ARCH} == "amd64"
echo "#define COMPAT_IA32 1" >> ${.TARGET}
.endif
.include <bsd.kmod.mk>