[Ocfs2-tools-devel] [PATCH] ocfs2.h: Include sparse types.

Joel Becker joel.becker at oracle.com
Fri Feb 15 13:12:27 PST 2008


ocfs2_fs.h defines the disk structures with sparse types.  Userspace
programs must also include ocfs2-kernel/sparse_endian_types.h.  Somehow
this was building most places.  We just add
ocfs2-kernel/sparse_endian_types.h to ocfs2/ocfs2.h before including the
disk header.

Signed-off-by: Joel Becker <joel.becker at oracle.com>
---
 include/ocfs2/ocfs2.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/ocfs2/ocfs2.h b/include/ocfs2/ocfs2.h
index 390666d..36ff02f 100644
--- a/include/ocfs2/ocfs2.h
+++ b/include/ocfs2/ocfs2.h
@@ -48,6 +48,7 @@
 #include <et/com_err.h>
 
 #include <ocfs2-kernel/kernel-list.h>
+#include <ocfs2-kernel/sparse_endian_types.h>
 #include <ocfs2-kernel/ocfs2_fs.h>
 #include <o2dlm/o2dlm.h>
 #include <o2cb/o2cb.h>
-- 
1.5.4.1




More information about the Ocfs2-tools-devel mailing list