diff options
author | dim <dim@FreeBSD.org> | 2011-06-13 16:05:41 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-06-13 16:05:41 +0000 |
commit | accb907d3b1dc4a3805878935fb2d1b9724122e4 (patch) | |
tree | 8c854c85df61cc0848d240919d32c2ed4d0e5d2d /sys/ufs | |
parent | 14a87d82fdaf6a248dd591005bd871a79d6a609c (diff) | |
download | FreeBSD-src-accb907d3b1dc4a3805878935fb2d1b9724122e4.zip FreeBSD-src-accb907d3b1dc4a3805878935fb2d1b9724122e4.tar.gz |
Use alternative, less messy solution to avoid breakage after r223020:
put the snapdata structure between #ifdef _KERNEL guards.
Suggested by: kib
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_extern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_extern.h b/sys/ufs/ffs/ffs_extern.h index fbda5a8..75f9d38 100644 --- a/sys/ufs/ffs/ffs_extern.h +++ b/sys/ufs/ffs/ffs_extern.h @@ -166,6 +166,7 @@ void softdep_freework(struct workhead *); int ffs_rdonly(struct inode *); +#ifdef _KERNEL TAILQ_HEAD(snaphead, inode); struct snapdata { @@ -175,5 +176,6 @@ struct snapdata { daddr_t *sn_blklist; struct lock sn_lock; }; +#endif /* _KERNEL */ #endif /* !_UFS_FFS_EXTERN_H */ |