linux-tools: a hack to fix build of bpftool on ppc*
This commit is contained in:
parent
c1115e4660
commit
a111015bf5
1 changed files with 15 additions and 0 deletions
15
srcpkgs/linux-tools/patches/ppc-bpf.patch
Normal file
15
srcpkgs/linux-tools/patches/ppc-bpf.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
https://www.mail-archive.com/netdev@vger.kernel.org/msg364272.html
|
||||||
|
|
||||||
|
--- tools/include/uapi/linux/types.h
|
||||||
|
+++ tools/include/uapi/linux/types.h
|
||||||
|
@@ -20,4 +20,10 @@ typedef __u32 __bitwise __wsum;
|
||||||
|
#define __aligned_be64 __be64 __attribute__((aligned(8)))
|
||||||
|
#define __aligned_le64 __le64 __attribute__((aligned(8)))
|
||||||
|
|
||||||
|
+#ifdef __powerpc__
|
||||||
|
+typedef struct {
|
||||||
|
+ __u32 u[4];
|
||||||
|
+} __attribute__((aligned(16))) __vector128;
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#endif /* _UAPI_LINUX_TYPES_H */
|
Loading…
Add table
Add a link
Reference in a new issue