void-packages/srcpkgs/sbcl/patches/ppc-musl.patch

33 lines
752 B
Diff

--- a/sbcl/src/runtime/ppc-linux-os.c
+++ b/sbcl/src/runtime/ppc-linux-os.c
@@ -33,6 +33,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <sys/prctl.h>
+#include <asm/ptrace.h>
#include "validate.h"
#include "ppc-linux-mcontext.h"
--- a/sbcl/src/runtime/os-common.c
+++ b/sbcl/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/sbcl/src/runtime/ppc-arch.c
+++ b/sbcl/src/runtime/ppc-arch.c
@@ -10,6 +10,7 @@
*/
#include <stdio.h>
+#include <asm/ptrace.h>
#include "sbcl.h"
#include "arch.h"