Fix two cases involving opt_capsicum.h and module builds:

(1) opt_capsicum.h is no longer required in ffs_alloc.c, so remove the
   #include.

(2) portalfs depends on opt_capsicum.h, so have the Makefile generate one
   if required.

These affect only modules built without a kernel (i.e, not buildkernel,
but yes buildworld if the dubious MODULES_WITH_WORLD is used).

Approved by:	re (bz)
Sponsored by:	Google Inc
This commit is contained in:
Robert Watson 2011-08-15 07:32:44 +00:00
parent 74d0c46dde
commit 4b3a6fb933
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224876
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@
KMOD= portalfs
SRCS= vnode_if.h \
portal_vfsops.c portal_vnops.c
portal_vfsops.c portal_vnops.c \
opt_capsicum.h
.include <bsd.kmod.mk>

View File

@ -62,7 +62,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "opt_capsicum.h"
#include "opt_quota.h"
#include <sys/param.h>