From d5ca78487464b9e480555b3e1ed3d980fbe6aef0 Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Sun, 31 Oct 2004 10:26:59 +0000 Subject: [PATCH] Stefan Fiedler: quota: patch for linux 2.6.9 same workaround as for util-linux Index: package/base/quota/linux-asm-byteorder_h.patch =================================================================== [2004102719500012869] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4727 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- .../base/quota/linux-asm-byteorder_h.patch | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 package/base/quota/linux-asm-byteorder_h.patch diff --git a/package/base/quota/linux-asm-byteorder_h.patch b/package/base/quota/linux-asm-byteorder_h.patch new file mode 100644 index 000000000..92be66d21 --- /dev/null +++ b/package/base/quota/linux-asm-byteorder_h.patch @@ -0,0 +1,92 @@ +diff -dur quota-tools/convertquota.c quota-tools-p/convertquota.c +--- quota-tools/convertquota.c 2002-11-12 10:00:05.000000000 +0000 ++++ quota-tools-p/convertquota.c 2004-10-27 18:33:51.089340064 +0000 +@@ -12,6 +12,19 @@ + #include + #include + ++ ++#ifdef __CHECKER__ ++#define __bitwise __attribute__((bitwise)) ++#else ++#define __bitwise ++#endif ++#define __le16 __bitwise __u16 ++#define __be16 __bitwise __u16 ++#define __le32 __bitwise __u32 ++#define __be32 __bitwise __u32 ++#define __le64 __bitwise __u64 ++#define __be64 __bitwise __u64 ++ + #include + + #include "pot.h" +diff -dur quota-tools/quotacheck_v2.c quota-tools-p/quotacheck_v2.c +--- quota-tools/quotacheck_v2.c 2004-05-15 19:20:53.000000000 +0000 ++++ quota-tools-p/quotacheck_v2.c 2004-10-27 18:32:35.060898144 +0000 +@@ -10,6 +10,19 @@ + #include + #include + #include ++ ++#ifdef __CHECKER__ ++#define __bitwise __attribute__((bitwise)) ++#else ++#define __bitwise ++#endif ++#define __le16 __bitwise __u16 ++#define __be16 __bitwise __u16 ++#define __le32 __bitwise __u32 ++#define __be32 __bitwise __u32 ++#define __le64 __bitwise __u64 ++#define __be64 __bitwise __u64 ++ + #include + + #include "pot.h" +diff -dur quota-tools/quotaio.c quota-tools-p/quotaio.c +--- quota-tools/quotaio.c 2004-05-22 21:49:55.000000000 +0000 ++++ quota-tools-p/quotaio.c 2004-10-27 18:33:00.701000256 +0000 +@@ -13,6 +13,19 @@ + #include + #include + #include ++ ++#ifdef __CHECKER__ ++#define __bitwise __attribute__((bitwise)) ++#else ++#define __bitwise ++#endif ++#define __le16 __bitwise __u16 ++#define __be16 __bitwise __u16 ++#define __le32 __bitwise __u32 ++#define __be32 __bitwise __u32 ++#define __le64 __bitwise __u64 ++#define __be64 __bitwise __u64 ++ + #include + + #include "pot.h" +diff -dur quota-tools/quotaio_v2.c quota-tools-p/quotaio_v2.c +--- quota-tools/quotaio_v2.c 2004-05-22 21:49:55.000000000 +0000 ++++ quota-tools-p/quotaio_v2.c 2004-10-27 18:33:23.424545752 +0000 +@@ -10,6 +10,19 @@ + #include + #include + #include ++ ++#ifdef __CHECKER__ ++#define __bitwise __attribute__((bitwise)) ++#else ++#define __bitwise ++#endif ++#define __le16 __bitwise __u16 ++#define __be16 __bitwise __u16 ++#define __le32 __bitwise __u32 ++#define __be32 __bitwise __u32 ++#define __le64 __bitwise __u64 ++#define __be64 __bitwise __u64 ++ + #include + + #include "pot.h"