From 59fbc0de17fff14558227b3de28d1f591cd366a6 Mon Sep 17 00:00:00 2001 From: Vladimir Saveliev Date: Tue, 22 Jun 2010 00:32:37 +0400 Subject: [PATCH] b=21592 include linux/fs.h only when sys/mount.h doesn't define BLKGETSIZE64 i=andreas.dilger i=andrew.perepechko i=sheng.yang --- lustre/utils/mkfs_lustre.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index f3e0b55..5c11296 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -68,7 +68,9 @@ /* libcfs.h is not really needed here, but on SLES10/PPC, fs.h includes idr.h which * requires BITS_PER_LONG to be defined */ #include +#ifndef BLKGETSIZE64 #include /* for BLKGETSIZE64 */ +#endif #include #endif #include -- 1.8.3.1