chiark / gitweb /
Merge pull request #222 from michalbednarski/gnupg-x86-asm-pie
[termux-packages] / packages / proot / src-ptrace-ptrace.c.patch
1 diff -u -r ../PRoot-5.1.0/src/ptrace/ptrace.c ./src/ptrace/ptrace.c
2 --- ../PRoot-5.1.0/src/ptrace/ptrace.c  2014-12-15 09:18:11.000000000 -0500
3 +++ ./src/ptrace/ptrace.c       2016-01-08 15:12:27.089144325 -0500
4 @@ -27,6 +27,7 @@
5  #include <signal.h>     /* siginfo_t, */
6  #include <sys/uio.h>    /* struct iovec, */
7  #include <sys/param.h>  /* MIN(), MAX(), */
8 +#include <sys/wait.h>   /* __WALL */
9  #include <string.h>     /* memcpy(3), */
10  
11  #include "ptrace/ptrace.h"
12 @@ -58,7 +59,13 @@
13  #define user_fpregs_struct user_fpsimd_struct
14  #endif
15  
16 -static const char *stringify_ptrace(enum __ptrace_request request)
17 +static const char *stringify_ptrace(
18 +#ifdef __ANDROID__
19 +               int
20 +#else
21 +               enum __ptrace_request
22 +#endif
23 +               request)
24  {
25  #define CASE_STR(a) case a: return #a; break;
26         switch ((int) request) {