summaryrefslogtreecommitdiff
path: root/devel/papi/files/patch-attach2.c
blob: f1418ea9d5d01fb84dcc400577ca1f80b7bdd453 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- ctests/attach2.c.orig	2013-11-10 23:03:27.000000000 +0400
+++ ctests/attach2.c	2013-11-10 23:08:11.000000000 +0400
@@ -25,6 +25,7 @@
 #if defined(__FreeBSD__)
 # define PTRACE_ATTACH PT_ATTACH
 # define PTRACE_CONT PT_CONTINUE
+# define PTRACE_TRACEME PT_TRACE_ME
 #endif
 
 int
@@ -148,7 +149,7 @@
 		test_fail_exit( __FILE__, __LINE__, "PAPI_start", retval );
 
 	printf("Continuing\n");
-	if ( ptrace( PTRACE_CONT, pid, NULL, NULL ) == -1 ) {
+	if ( ptrace( PTRACE_CONT, pid, NULL, 0 ) == -1 ) {
 	  perror( "ptrace(PTRACE_CONT)" );
 	  return 1;
 	}