diff --git a/contrib/smbfs/mount_smbfs/mount_smbfs.c b/contrib/smbfs/mount_smbfs/mount_smbfs.c --- a/contrib/smbfs/mount_smbfs/mount_smbfs.c +++ b/contrib/smbfs/mount_smbfs/mount_smbfs.c @@ -47,6 +47,7 @@ #include #include #include +#include #include @@ -56,8 +57,6 @@ #include -#include "mntopts.h" - static char mount_point[MAXPATHLEN + 1]; static void usage(void); diff --git a/lib/libutil/mntopts.c b/lib/libutil/mntopts.c --- a/lib/libutil/mntopts.c +++ b/lib/libutil/mntopts.c @@ -36,14 +36,13 @@ #include #include +#include #include #include #include #include #include -#include "mntopts.h" - int getmnt_silent = 0; void diff --git a/sbin/init/init.c b/sbin/init/init.c --- a/sbin/init/init.c +++ b/sbin/init/init.c @@ -49,6 +49,7 @@ #include #include #include +#include #include #include #include @@ -69,7 +70,6 @@ #include #endif -#include "mntopts.h" #include "pathnames.h" /* diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -39,6 +39,7 @@ #include #include +#include #include #include #include @@ -51,7 +52,6 @@ #include #include "extern.h" -#include "mntopts.h" #include "pathnames.h" #define EXIT(a) { \ diff --git a/sbin/mount/mount_fs.c b/sbin/mount/mount_fs.c --- a/sbin/mount/mount_fs.c +++ b/sbin/mount/mount_fs.c @@ -38,13 +38,13 @@ #include #include #include +#include #include #include #include #include #include "extern.h" -#include "mntopts.h" static struct mntopt mopts[] = { MOPT_STDOPTS, diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c --- a/sbin/mount_cd9660/mount_cd9660.c +++ b/sbin/mount_cd9660/mount_cd9660.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include @@ -55,8 +56,6 @@ #include #include -#include "mntopts.h" - static struct mntopt mopts[] = { MOPT_STDOPTS, MOPT_UPDATE, diff --git a/sbin/mount_fusefs/mount_fusefs.c b/sbin/mount_fusefs/mount_fusefs.c --- a/sbin/mount_fusefs/mount_fusefs.c +++ b/sbin/mount_fusefs/mount_fusefs.c @@ -49,11 +49,10 @@ #include #include #include +#include #include #include -#include "mntopts.h" - #ifndef FUSE4BSD_VERSION #define FUSE4BSD_VERSION "0.3.9-pre1" #endif diff --git a/sbin/mount_msdosfs/mount_msdosfs.c b/sbin/mount_msdosfs/mount_msdosfs.c --- a/sbin/mount_msdosfs/mount_msdosfs.c +++ b/sbin/mount_msdosfs/mount_msdosfs.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include /* must be after stdio to declare fparseln */ @@ -53,8 +54,6 @@ #include #include -#include "mntopts.h" - static gid_t a_gid(char *); static uid_t a_uid(char *); static mode_t a_mask(char *); diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -58,6 +58,7 @@ #include #include #include +#include #include #include #include @@ -67,7 +68,6 @@ #include #include -#include "mntopts.h" #include "mounttab.h" /* Table for af,sotype -> netid conversions. */ diff --git a/sbin/mount_nullfs/mount_nullfs.c b/sbin/mount_nullfs/mount_nullfs.c --- a/sbin/mount_nullfs/mount_nullfs.c +++ b/sbin/mount_nullfs/mount_nullfs.c @@ -38,14 +38,13 @@ #include #include +#include #include #include #include #include #include -#include "mntopts.h" - static void usage(void) __dead2; static int diff --git a/sbin/mount_udf/mount_udf.c b/sbin/mount_udf/mount_udf.c --- a/sbin/mount_udf/mount_udf.c +++ b/sbin/mount_udf/mount_udf.c @@ -53,14 +53,13 @@ #include #include +#include #include #include #include #include #include -#include "mntopts.h" - static struct mntopt mopts[] = { MOPT_STDOPTS, MOPT_UPDATE, diff --git a/sbin/mount_unionfs/mount_unionfs.c b/sbin/mount_unionfs/mount_unionfs.c --- a/sbin/mount_unionfs/mount_unionfs.c +++ b/sbin/mount_unionfs/mount_unionfs.c @@ -41,6 +41,7 @@ #include #include +#include #include #include #include @@ -49,8 +50,6 @@ #include #include -#include "mntopts.h" - static int subdir(const char *p, const char *dir) { diff --git a/tests/sys/fs/fusefs/fallocate.cc b/tests/sys/fs/fusefs/fallocate.cc --- a/tests/sys/fs/fusefs/fallocate.cc +++ b/tests/sys/fs/fusefs/fallocate.cc @@ -32,10 +32,9 @@ #include #include +#include // for build_iovec #include #include - -#include "mntopts.h" // for build_iovec } #include "mockfs.hh" diff --git a/tests/sys/fs/fusefs/mockfs.cc b/tests/sys/fs/fusefs/mockfs.cc --- a/tests/sys/fs/fusefs/mockfs.cc +++ b/tests/sys/fs/fusefs/mockfs.cc @@ -39,13 +39,12 @@ #include #include +#include // for build_iovec #include #include #include #include #include - -#include "mntopts.h" // for build_iovec } #include diff --git a/tests/sys/fs/fusefs/mount.cc b/tests/sys/fs/fusefs/mount.cc --- a/tests/sys/fs/fusefs/mount.cc +++ b/tests/sys/fs/fusefs/mount.cc @@ -33,7 +33,7 @@ #include #include -#include "mntopts.h" // for build_iovec +#include // for build_iovec } #include "mockfs.hh" diff --git a/usr.sbin/autofs/automount.c b/usr.sbin/autofs/automount.c --- a/usr.sbin/autofs/automount.c +++ b/usr.sbin/autofs/automount.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -55,7 +56,6 @@ #include #include "common.h" -#include "mntopts.h" static int unmount_by_statfs(const struct statfs *sb, bool force) diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -64,6 +64,7 @@ #include #include #include +#include #include #include #include @@ -73,7 +74,6 @@ #include #include #include "pathnames.h" -#include "mntopts.h" #ifdef DEBUG #include