File support-ppc64.patch of Package libreoffice-online
diff -Nur online-libreoffice-7.0.0.2/common/Seccomp.cpp online-libreoffice-7.0.0.2-new/common/Seccomp.cpp --- online-libreoffice-7.0.0.2/common/Seccomp.cpp 2020-07-24 19:59:10.000000000 +0800 +++ online-libreoffice-7.0.0.2-new/common/Seccomp.cpp 2020-09-04 13:58:52.862546843 +0800 @@ -52,6 +52,10 @@ # define AUDIT_ARCH_NR AUDIT_ARCH_ARM # define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.arm_##_reg) # define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, r7) +#elif defined(__powerpc64__) +# define AUDIT_ARCH_NR AUDIT_ARCH_PPC64 +# define SECCOMP_REG(_ctx, _reg) ((_ctx)->uc_mcontext.regs->gpr[_reg]) +# define SECCOMP_SYSCALL(_ctx) SECCOMP_REG(_ctx, 0) #else # error "Platform does not support seccomp filtering yet - unsafe." #endif