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"