diff options
author | root <root@rshg054.dnsready.net> | 2012-06-04 00:01:23 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-06-04 00:01:23 +0000 |
commit | 1e6588d64f084decf287a58b7ff93ff0ce4d0446 (patch) | |
tree | 29bf5b8778e1eb67871d9e6e8bb6e205bdde5db7 /community/multipath-tools/explicitly-include-posix_types.h.patch | |
parent | 80053e720288b6205a59c52c1b31c14a0f830989 (diff) |
Mon Jun 4 00:01:23 UTC 2012
Diffstat (limited to 'community/multipath-tools/explicitly-include-posix_types.h.patch')
-rw-r--r-- | community/multipath-tools/explicitly-include-posix_types.h.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/multipath-tools/explicitly-include-posix_types.h.patch b/community/multipath-tools/explicitly-include-posix_types.h.patch new file mode 100644 index 000000000..6cbbc3ba1 --- /dev/null +++ b/community/multipath-tools/explicitly-include-posix_types.h.patch @@ -0,0 +1,35 @@ +From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org> +Date: Sat, 5 Dec 2009 18:11:00 +0100 +Subject: [PATCH] explicitly include posix_types.h + +to get the correct type for __kernel_old_dev_t + +Closes: #558990 +--- + kpartx/lopart.c | 13 +------------ + 1 files changed, 1 insertions(+), 12 deletions(-) + +Index: mpath/kpartx/lopart.c +=================================================================== +--- mpath.orig/kpartx/lopart.c 2012-02-09 18:02:23.808800332 +0530 ++++ mpath/kpartx/lopart.c 2012-02-09 18:15:24.400671080 +0530 +@@ -26,18 +26,7 @@ + #include <sys/stat.h> + #include <sys/mman.h> + #include <sysmacros.h> +- +-#if defined(__hppa__) || defined(__powerpc64__) || defined (__alpha__) \ +- || defined (__x86_64__) +-typedef unsigned long __kernel_old_dev_t; +-#elif defined(__powerpc__) || defined(__ia64__) || (defined(__sparc__) && defined (__arch64__)) +-typedef unsigned int __kernel_old_dev_t; +-#else +-typedef unsigned short __kernel_old_dev_t; +-#endif +- +-#define dev_t __kernel_old_dev_t +- ++#include <asm/posix_types.h> + #include <linux/loop.h> + + #include "lopart.h" |