summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-08-27 22:53:04 +0200
committerConrad Kostecki <conikost@gentoo.org>2020-08-27 22:59:15 +0200
commit102a02616132258cb9e6715264bd7a8a6ddac868 (patch)
treed44363bc82c6e036406ff8d0d0e61714de2f3f16 /dev-util/statifier/files
parentapp-misc/graphlcd-base: fix compilation with musl (diff)
downloadgentoo-102a02616132258cb9e6715264bd7a8a6ddac868.tar.gz
gentoo-102a02616132258cb9e6715264bd7a8a6ddac868.tar.bz2
gentoo-102a02616132258cb9e6715264bd7a8a6ddac868.zip
dev-util/statifier: fix compilation with musl
Closes: https://bugs.gentoo.org/713604 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-util/statifier/files')
-rw-r--r--dev-util/statifier/files/statifier-1.7.4-musl.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-util/statifier/files/statifier-1.7.4-musl.patch b/dev-util/statifier/files/statifier-1.7.4-musl.patch
new file mode 100644
index 000000000000..919f354127b3
--- /dev/null
+++ b/dev-util/statifier/files/statifier-1.7.4-musl.patch
@@ -0,0 +1,28 @@
+--- a/src/my_gdb/my_ptrace.c
++++ b/src/my_gdb/my_ptrace.c
+@@ -13,8 +13,10 @@
+ #include <stdlib.h>
+ #include <string.h>
+
++typedef int statifier_ptrace_req_t;
++
+ long my_ptrace(
+- enum __ptrace_request request,
++ statifier_ptrace_req_t request,
+ pid_t pid,
+ void *addr,
+ void *data,
+--- a/src/my_gdb/my_ptrace.h
++++ b/src/my_gdb/my_ptrace.h
+@@ -15,8 +15,10 @@
+ #include <sys/types.h>
+ #include <sys/ptrace.h>
+
++typedef int statifier_ptrace_req_t;
++
+ long my_ptrace(
+- enum __ptrace_request request,
++ statifier_ptrace_req_t request,
+ pid_t pid,
+ void *addr,
+ void *data,