summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2013-07-26 14:22:03 +0000
committermarius <marius@FreeBSD.org>2013-07-26 14:22:03 +0000
commit5063721eee2c3769df52fb9e46bf4105f23e4186 (patch)
tree73c3e43050fc4ed6c657c657d4249b30838a9c09 /usr.sbin
parent07e87da933bbd84bf1ecb44155f79558a7d8465c (diff)
downloadFreeBSD-src-5063721eee2c3769df52fb9e46bf4105f23e4186.zip
FreeBSD-src-5063721eee2c3769df52fb9e46bf4105f23e4186.tar.gz
Ensure that makefs.h is included when using ufs_bswap.h so the FFS_EI macro
is picked up when defined. Previously, ffs_subr.c was always built without support for opposite endianess as it doesn't include makefs.h on its own. MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/makefs/ffs/ufs_bswap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/makefs/ffs/ufs_bswap.h b/usr.sbin/makefs/ffs/ufs_bswap.h
index c368255..6e7cc42 100644
--- a/usr.sbin/makefs/ffs/ufs_bswap.h
+++ b/usr.sbin/makefs/ffs/ufs_bswap.h
@@ -40,6 +40,8 @@
#include <sys/endian.h>
+#include "makefs.h"
+
/* Macros to access UFS flags */
#ifdef FFS_EI
#define UFS_MPNEEDSWAP(mp) (VFSTOUFS(mp)->um_flags & UFS_NEEDSWAP)
OpenPOWER on IntegriCloud