void-packages/srcpkgs/qt6-webengine/patches/0750-chromium-musl-cross-no...

31 lines
1.1 KiB
Diff
Raw Normal View History

2022-08-08 12:13:11 +02:00
--- qt6-webengine-6.4.2.orig/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
+++ qt6-webengine-6.4.2/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
@@ -38,7 +38,12 @@
#include "client/linux/minidump_writer/linux_ptrace_dumper.h"
+#if defined(__GLIBC__)
#include <asm/ptrace.h>
+#else
+/* For arm*-musl this definition is missing */
+#define ARM_sp uregs[13]
+#endif
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
--- qt6-webengine-6.4.2.orig/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
+++ qt6-webengine-6.4.2/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/minidump_writer/linux_core_dumper.cc
@@ -32,7 +32,12 @@
#include "client/linux/minidump_writer/linux_core_dumper.h"
+#if defined(__GLIBC__)
#include <asm/ptrace.h>
+#else
+/* For arm*-musl this definition is missing */
+#define ARM_sp uregs[13]
+#endif
#include <assert.h>
#include <elf.h>
#include <stdio.h>