void-packages/srcpkgs/linux-tools/patches/ppc-bpf.patch

16 lines
458 B
Diff

https://www.mail-archive.com/netdev@vger.kernel.org/msg364272.html
--- a/tools/include/uapi/linux/types.h
+++ b/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 */