diff options
Diffstat (limited to 'testing/care/10-tests-musl-compat.patch')
-rw-r--r-- | testing/care/10-tests-musl-compat.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/care/10-tests-musl-compat.patch b/testing/care/10-tests-musl-compat.patch new file mode 100644 index 00000000000..8a92c3fa52a --- /dev/null +++ b/testing/care/10-tests-musl-compat.patch @@ -0,0 +1,26 @@ +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; |