void-packages/srcpkgs/minijail/patches/ppc.patch
q66 2a480438d5 minijail: fix build on ppc64le*
Big endian is not supported.
2019-11-16 09:09:13 +01:00

16 lines
535 B
Diff

These are defined on ppc* in included headers but their values refer to things
that are in headers which are not included. Additionally, ELF_GREG_TYPE refers
to a typedef, which is not a constant value. So undef them, just like some
others are already undef'd for other platforms above that.
--- gen_constants-inl.h
+++ gen_constants-inl.h
@@ -24,3 +24,8 @@
// build errors on such broken systems.
#undef BLKTRACESETUP
#undef FS_IOC_FIEMAP
+#undef ELF_ARCH
+#undef ELF_CLASS
+#undef ELF_DATA
+#undef ELF_GREG_TYPE
+#undef FIOQSIZE