Include <syscall.h> in ptrace.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Include <syscall.h> in ptrace.c

Kevin Buettner
I've just committed the patch below.  It's needed so that kill_lwp()
will be able to find SYS_tkill if it exists.

        * ptrace-target.c (syscall.h): Include.

Index: ptrace-target.c
===================================================================
RCS file: /cvs/src/src/rda/unix/ptrace-target.c,v
retrieving revision 1.14
diff -u -p -r1.14 ptrace-target.c
--- ptrace-target.c 3 Oct 2006 22:49:05 -0000 1.14
+++ ptrace-target.c 23 Nov 2009 20:13:00 -0000
@@ -49,6 +49,8 @@
 #include "lwp-ctrl.h"
 #include "diagnostics.h"
 
+#include <syscall.h>
+
 /* This is unix ptrace gdbserv target that uses the RDA library to implement
    a remote gdbserver on a unix ptrace host.  It controls the process
    to be debugged on the linux host, allowing GDB to pull the strings