mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
26 lines
523 B
Diff
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;
|