freebsd-ports/devel/papi/files/patch-attach2.c
Dmitry Marakasov 7740c915c6 - Update to 5.2.0, fix build [1]
- Reset maintainership (maintainer no longer uses FreeBSD, via private email) [1]
- Support staging

Submitted by:	glebius ([1])
2013-11-14 13:36:20 +00:00

19 lines
558 B
C

--- 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;
}