From a641c6e39477729346f4a12f3c367c06dc9ead6f Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Sun, 9 Feb 2014 13:04:57 +0400 Subject: [PATCH] LU-4602 utils: do not include in some case (e.g. cross-compilation on OS/X) MS_* are defined before linux/fs.h. so do not try to re-define them. Signed-off-by: Alex Zhuravlev Change-Id: I9ea8ea4865aa0380d7556b88604ec563acb0562b Reviewed-on: http://review.whamcloud.com/9190 Tested-by: Jenkins Reviewed-by: Dmitry Eremin Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/utils/mount_lustre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 4276e5c..f0f1f0f 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -63,7 +63,7 @@ * set of flag #defines we should stop including linux/fs.h */ #warn remove kernel include -#else +#elif !defined(MS_RDONLY) #include #endif -- 1.8.3.1