aports/testing/care/10-tests-musl-compat.patch
Peter Shkenev 7aab97fbc3 testing/care: new aport
https://proot-me.github.io/care/
Comprehensive Archiver for Reproducible Execution
2022-02-23 09:56:40 +00:00

26 lines
523 B
Diff

The same change was made in src/.
--- a/test/ptrace-2.c
+++ b/test/ptrace-2.c
@@ -52,6 +52,12 @@
# endif
#endif
+#if defined(__GLIBC__)
+# define PTRACE_REQUEST_TYPE enum __ptrace_request
+#else
+# define PTRACE_REQUEST_TYPE int
+#endif
+
/**
* Compute the offset of the register @reg_name in the USER area.
*/
@@ -200,7 +206,7 @@
int main(int argc, char *argv[])
{
- enum __ptrace_request restart_how;
+ PTRACE_REQUEST_TYPE restart_how;
int last_exit_status = -1;
pid_t *pids = NULL;
long status;