From cb88c4c19a831d94b864c49a162e2635031ae7bb Mon Sep 17 00:00:00 2001 From: Rob Latham Date: Tue, 28 Aug 2018 16:27:21 -0500 Subject: [PATCH] including lustre_user now deprecated put in a configure test (same one used in ROMIO) in case someone's using old Lustre client headers --- configure.ac | 2 +- src/aiori-POSIX.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7042355..a59cba4 100755 --- a/configure.ac +++ b/configure.ac @@ -71,7 +71,7 @@ AC_ARG_WITH([lustre], [support configurable Lustre striping values @<:@default=check@:>@])], [], [with_lustre=check]) AS_IF([test "x$with_lustre" != xno], [ - AC_CHECK_HEADERS([lustre/lustre_user.h], [], [ + AC_CHECK_HEADERS([linux/lustre/lustre_user.h lustre/lustre_user.h], break, [ if test "x$with_lustre" != xcheck; then AC_MSG_FAILURE([--with-lustre was given, not found]) fi diff --git a/src/aiori-POSIX.c b/src/aiori-POSIX.c index 9e740a6..0dd712e 100755 --- a/src/aiori-POSIX.c +++ b/src/aiori-POSIX.c @@ -31,9 +31,13 @@ #include #include + #ifdef HAVE_LUSTRE_LUSTRE_USER_H # include #endif +#ifdef HAVE_LINUX_LUSTRE_LUSTRE_USER_H +# include +#endif #ifdef HAVE_GPFS_H # include #endif