linux-tools: a hack to fix build of bpftool on ppc*

This commit is contained in:
q66 2021-01-03 03:31:44 +01:00
parent c1115e4660
commit a111015bf5

View 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 */