Include libcfs/posix/posix-types.h in the main rpm, and
add #include statements in lustre_user.h and ll_fiemap.h.
This will allow user-space applications that include these
files to compile.
Change-Id: Ibe391bf28afe91b3914ca1eb07fe66e408b21b4a
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/1138
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
+libcfsposixdir = $(includedir)/libcfs/posix
+
+if UTILS
+libcfsposix_HEADERS = posix-types.h
+endif
+
EXTRA_DIST := libcfs.h posix-wordsize.h posix-types.h
%attr(-, root, root) %{_libdir}/libptlctl.a
%attr(-, root, root) %{_libdir}/liblustreapi.a
%attr(-, root, root) /usr/include/lustre
+%attr(-, root, root) /usr/include/libcfs
%attr(-, root, root) %{_mandir}/man?/*
#if !defined(HAVE_LINUX_FIEMAP_H) || !defined(__KERNEL__)
+#ifndef __KERNEL__
+#include <libcfs/posix/posix-types.h>
+#endif
+
struct ll_fiemap_extent {
__u64 fe_logical; /* logical offset in bytes for the start of
* the extent from the beginning of the file */
* @{
*/
+#ifndef __KERNEL__
+#include <libcfs/posix/posix-types.h>
+#endif
#include <lustre/ll_fiemap.h>
#if defined(__linux__)
#include <linux/lustre_user.h>