From 262ff95ef668a7a5dd32afb55e088a059a943eb5 Mon Sep 17 00:00:00 2001 From: ElonH Date: Wed, 22 Apr 2020 19:39:42 +0800 Subject: [PATCH] rtl8821cu: __fswab16 and __fswab32 redefine in powerpc arch --- .../patches/010-fix-build-on-powerpc.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/ctcgfw/rtl8821cu/patches/010-fix-build-on-powerpc.patch diff --git a/package/ctcgfw/rtl8821cu/patches/010-fix-build-on-powerpc.patch b/package/ctcgfw/rtl8821cu/patches/010-fix-build-on-powerpc.patch new file mode 100644 index 0000000000..d07b4cd9f6 --- /dev/null +++ b/package/ctcgfw/rtl8821cu/patches/010-fix-build-on-powerpc.patch @@ -0,0 +1,20 @@ +diff --git a/include/byteorder/swab.h b/include/byteorder/swab.h +index a8dd46b..c4b4298 100644 +--- a/include/byteorder/swab.h ++++ b/include/byteorder/swab.h +@@ -104,6 +104,7 @@ __inline static __u64 __arch__swab64(__u64 x) + #define __swab64(x) __fswab64(x) + #endif /* __swab16 */ + ++#ifndef _UAPI_LINUX_SWAB_H + #ifdef PLATFORM_FREEBSD + __inline static __u16 __fswab16(__u16 x) + #else +@@ -120,6 +121,7 @@ __inline static __u64 __arch__swab64(__u64 x) + { + return __arch__swab32(x); + } ++#endif + + #if defined(PLATFORM_LINUX) || defined(PLATFORM_WINDOWS) + #define swab16 __swab16