summaryrefslogtreecommitdiff
blob: 919f354127b3dbeee26337314356b2f45e51c59a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/src/my_gdb/my_ptrace.c
+++ b/src/my_gdb/my_ptrace.c
@@ -13,8 +13,10 @@
 #include <stdlib.h>
 #include <string.h>
 
+typedef int statifier_ptrace_req_t;
+
 long my_ptrace(
-	enum __ptrace_request request,
+	statifier_ptrace_req_t request,
 	pid_t                 pid,
 	void                 *addr,
 	void                 *data,
--- a/src/my_gdb/my_ptrace.h
+++ b/src/my_gdb/my_ptrace.h
@@ -15,8 +15,10 @@
 #include <sys/types.h>
 #include <sys/ptrace.h>
 
+typedef int statifier_ptrace_req_t;
+
 long my_ptrace(
-	enum __ptrace_request request,
+	statifier_ptrace_req_t request,
 	pid_t                 pid,
 	void                 *addr,
 	void                 *data,