#include <lustre_ver.h>
#include <ctype.h>
#include <limits.h>
+#include <lustre/lustre_idl.h>
#if LUSTRE_VERSION_CODE > OBD_OCD_VERSION(2, 10, 51, 0)
/*
* LU-1783
* set of flag #defines we should stop including linux/fs.h
*/
#warn remove kernel include
-#else
+#elif !defined(MS_RDONLY)
#include <linux/fs.h>
#endif