rtl8821cu: __fswab16 and __fswab32 redefine in powerpc arch
This commit is contained in:
parent
f69260725e
commit
262ff95ef6
@ -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
|
||||
Loading…
Reference in New Issue
Block a user