1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/proot/tests-musl-compat.patch
2021-03-17 00:25:44 +01: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;