diff --git a/srcpkgs/linux-tools/patches/ppc-bpf.patch b/srcpkgs/linux-tools/patches/ppc-bpf.patch new file mode 100644 index 00000000000..251047b6c2c --- /dev/null +++ b/srcpkgs/linux-tools/patches/ppc-bpf.patch @@ -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 */