ptrace(3) should be varargs.
Bug: 16352070
(cherry picked from commit 98b088dce70a2625d5cfa1872e427af5f06bfd99)
Change-Id: I6193ef44df9a5668020916eaca90b47fc4c8ab77
diff --git a/libc/include/sys/ptrace.h b/libc/include/sys/ptrace.h
index 848416b..8bba9fe 100644
--- a/libc/include/sys/ptrace.h
+++ b/libc/include/sys/ptrace.h
@@ -30,15 +30,15 @@
#include <sys/cdefs.h>
#include <sys/types.h>
-/* For all of the defines */
#include <linux/ptrace.h>
__BEGIN_DECLS
-#define PTRACE_POKEUSER PTRACE_POKEUSR
-#define PTRACE_PEEKUSER PTRACE_PEEKUSR
+/* glibc uses different names from the kernel for these two... */
+#define PTRACE_POKEUSER PTRACE_POKEUSR
+#define PTRACE_PEEKUSER PTRACE_PEEKUSR
-extern long ptrace(int request, pid_t pid, void *addr, void *data);
+extern long ptrace(int, ...);
__END_DECLS