Hello Mingo & All,   The small patch below makes raidtools
        to compile for me under 2.2.1 .  Hth
                                , JimL
+-----------------------------------------------------------------------+ 
|  James W. Laferriere  -  Network  Engineer  - [EMAIL PROTECTED] |
|   System Techniques   -  25416  -  22nd S.  - Des-Moines, WA  98198   |
|     Give me VMS     -or-   Give me Linux   -but-   only on AXP        |
+-----------------------------------------------------------------------+
diff -ruN raidtools-0.90-orig/mkpv.c raidtools-0.90/mkpv.c
--- raidtools-0.90-orig/mkpv.c  Thu Jan 28 03:28:08 1999
+++ raidtools-0.90/mkpv.c       Tue Feb  2 20:45:43 1999
@@ -15,6 +15,9 @@
 #include "popt.h"
 #include "version.h"
 #include <sys/mount.h>         /* for BLKGETSIZE */
+#ifndef BLKGETSIZE
+#include <linux/fs.h>          /* for BLKGETSIZE */
+#endif /* BLKGETSIZE */
 #include <sys/sysmacros.h>
 
 #include "lvm-int.h"
diff -ruN raidtools-0.90-orig/raid_io.c raidtools-0.90/raid_io.c
--- raidtools-0.90-orig/raid_io.c       Thu Jan 28 03:28:08 1999
+++ raidtools-0.90/raid_io.c    Tue Feb  2 20:45:55 1999
@@ -12,6 +12,9 @@
  */
 
 #include <sys/mount.h>         /* for BLKGETSIZE */
+#ifndef BLKGETSIZE
+#include <linux/fs.h>          /* for BLKGETSIZE */
+#endif /* BLKGETSIZE */
 #include <sys/sysmacros.h>
 
 #ifndef BLOCK_SIZE

Reply via email to