From 79fe5bcde142fbf284148a1f6c01f1716a9e1a78 Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Wed, 10 Nov 2004 13:15:20 +0000 Subject: [PATCH] Stefan Fiedler: lshw: patch for linux 2.6.9 same workaround as for util-linux Index: package/base/lshw/linux-asm-byteorder_h.patch =================================================================== [2004102818234804689] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4755 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/lshw/linux-asm-byteorder_h.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/base/lshw/linux-asm-byteorder_h.patch diff --git a/package/base/lshw/linux-asm-byteorder_h.patch b/package/base/lshw/linux-asm-byteorder_h.patch new file mode 100644 index 000000000..73f553b6f --- /dev/null +++ b/package/base/lshw/linux-asm-byteorder_h.patch @@ -0,0 +1,22 @@ +--- lshw-A.01.07/cdrom.cc 2004-05-11 22:14:35.000000000 +0000 ++++ lshw-A.01.07-p/cdrom.cc 2004-10-28 13:11:56.366827712 +0000 +@@ -4,6 +4,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 + + static char *id = "@(#) $Id: cdrom.cc 598 2004-05-11 22:14:35Z ezix $";