From c2b48f1ec43bc846eb1bbea80d3f42f111f65aed Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 28 Feb 2022 19:03:23 +0100 Subject: [PATCH] sbcl: fix build on ppc64le-musl --- srcpkgs/sbcl/patches/ppc-musl.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/srcpkgs/sbcl/patches/ppc-musl.patch b/srcpkgs/sbcl/patches/ppc-musl.patch index 2da4c1706b3..91a347f21f3 100644 --- a/srcpkgs/sbcl/patches/ppc-musl.patch +++ b/srcpkgs/sbcl/patches/ppc-musl.patch @@ -8,3 +8,25 @@ #include "validate.h" #include "ppc-linux-mcontext.h" +--- a/src/runtime/os-common.c ++++ b/src/runtime/os-common.c +@@ -31,6 +31,9 @@ + #if defined(LISP_FEATURE_OS_PROVIDES_DLOPEN) && !defined(LISP_FEATURE_WIN32) + # include + #endif ++#if defined(__powerpc__) ++# include ++#endif + + /* + * historically, this used sysconf to select the runtime page size +--- a/src/runtime/ppc-arch.c ++++ b/src/runtime/ppc-arch.c +@@ -10,6 +10,7 @@ + */ + + #include ++#include + + #include "sbcl.h" + #include "arch.h"