sbcl: fix build on ppc64le-musl

This commit is contained in:
q66 2022-02-28 19:03:23 +01:00
parent 016d55dd75
commit c2b48f1ec4

View file

@ -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 <dlfcn.h>
#endif
+#if defined(__powerpc__)
+# include <asm/ptrace.h>
+#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 <stdio.h>
+#include <asm/ptrace.h>
#include "sbcl.h"
#include "arch.h"