From db2f76a68c7db2203e3958c3293ef88197ca68c6 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 12 Jul 2018 18:43:55 -0300 Subject: [PATCH] edb-debugger: fix musl. --- srcpkgs/edb-debugger/patches/fix-musl.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/edb-debugger/patches/fix-musl.patch diff --git a/srcpkgs/edb-debugger/patches/fix-musl.patch b/srcpkgs/edb-debugger/patches/fix-musl.patch new file mode 100644 index 00000000000..64aef6c4f4d --- /dev/null +++ b/srcpkgs/edb-debugger/patches/fix-musl.patch @@ -0,0 +1,16 @@ +Source: maxice8 +Upstream: no +Reason: fixes compilation by avoiding using __ptrace_request as an enum. + +--- plugins/DebuggerCore/unix/linux/arch/x86-generic/PlatformThread.cpp ++++ plugins/DebuggerCore/unix/linux/arch/x86-generic/PlatformThread.cpp +@@ -34,6 +34,9 @@ along with this program. If not, see . + #include + #include + ++#ifndef __GLIBC__ ++#define __ptrace_request int ++#endif + + // doesn't always seem to be defined in the headers + #ifndef PTRACE_GET_THREAD_AREA