From f6fa8e104708455db41684eb12cf649cb8a15e39 Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Thu, 25 Nov 2004 10:20:35 +0000 Subject: [PATCH] Stefan Fiedler: raidtools: patch for linux 2.6.9 same workaround as for lvm2 Index: package/base/raidtools/linux-prio_tree_h.patch =================================================================== [2004110515594404264] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4797 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- .../base/raidtools/linux-prio_tree_h.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/base/raidtools/linux-prio_tree_h.patch diff --git a/package/base/raidtools/linux-prio_tree_h.patch b/package/base/raidtools/linux-prio_tree_h.patch new file mode 100644 index 000000000..d112eee6f --- /dev/null +++ b/package/base/raidtools/linux-prio_tree_h.patch @@ -0,0 +1,34 @@ +diff -dur raidtools-1.00.3/detect_multipath.c raidtools-1.00.3-p/detect_multipath.c +--- raidtools-1.00.3/detect_multipath.c 2003-01-15 09:58:25.000000000 +0100 ++++ raidtools-1.00.3-p/detect_multipath.c 2004-11-05 15:42:16.441758008 +0100 +@@ -34,6 +34,13 @@ + #include + #include + #include ++ ++/* for linux-2.6.9, from linux/types.h */ ++# include ++# ifndef pgoff_t ++# define pgoff_t unsigned long ++# endif ++ + #include + + #include +diff -dur raidtools-1.00.3/lsraid.c raidtools-1.00.3-p/lsraid.c +--- raidtools-1.00.3/lsraid.c 2003-01-15 09:58:25.000000000 +0100 ++++ raidtools-1.00.3-p/lsraid.c 2004-11-05 15:41:44.078677944 +0100 +@@ -42,6 +42,13 @@ + + #include + #include ++ ++/* for linux-2.6.9, from linux/types.h */ ++# include ++# ifndef pgoff_t ++# define pgoff_t unsigned long ++# endif ++ + #include + #include + #include