From 4b624821ee548191fa1a87315e02824e8b7bfed1 Mon Sep 17 00:00:00 2001 From: fake Date: Wed, 8 Dec 2004 10:37:54 +0000 Subject: [PATCH] fake: fix asm-ppc/byteorder.h to set a vital define even if gcc -ansi is used - see http://lkml.org/lkml/2004/5/16/56 [2004120303342923538] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@5040 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- .../linux26/arch-ppc-asm_byteorder-ansi-c.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/base/linux/linux26/arch-ppc-asm_byteorder-ansi-c.patch diff --git a/package/base/linux/linux26/arch-ppc-asm_byteorder-ansi-c.patch b/package/base/linux/linux26/arch-ppc-asm_byteorder-ansi-c.patch new file mode 100644 index 000000000..c1dff6e39 --- /dev/null +++ b/package/base/linux/linux26/arch-ppc-asm_byteorder-ansi-c.patch @@ -0,0 +1,15 @@ +--- ./include/asm-ppc/byteorder.h.orig 2004-12-02 21:08:03.100528624 +0100 ++++ ./include/asm-ppc/byteorder.h 2004-12-02 21:08:53.274900960 +0100 +@@ -64,10 +64,8 @@ + + #endif /* __KERNEL__ */ + +-#if !defined(__STRICT_ANSI__) || defined(__KERNEL__) +-# define __BYTEORDER_HAS_U64__ +-# define __SWAB_64_THRU_32__ +-#endif ++#define __BYTEORDER_HAS_U64__ ++#define __SWAB_64_THRU_32__ + + #endif /* __GNUC__ */ +