mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Fix build with older GCC which, doesn't like 'main' being a variable name.
This commit is contained in:
parent
ec15b81be1
commit
0151b36f26
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288961
@ -1103,7 +1103,7 @@ ATF_TC_BODY(ptrace__new_child_pl_syscall_code_thread, tc)
|
||||
{
|
||||
struct ptrace_lwpinfo pl;
|
||||
pid_t fpid, wpid;
|
||||
lwpid_t main;
|
||||
lwpid_t mainpid;
|
||||
int status;
|
||||
|
||||
ATF_REQUIRE((fpid = fork()) != -1);
|
||||
@ -1126,7 +1126,7 @@ ATF_TC_BODY(ptrace__new_child_pl_syscall_code_thread, tc)
|
||||
|
||||
ATF_REQUIRE(ptrace(PT_LWPINFO, wpid, (caddr_t)&pl,
|
||||
sizeof(pl)) != -1);
|
||||
main = pl.pl_lwpid;
|
||||
mainpid = pl.pl_lwpid;
|
||||
|
||||
/*
|
||||
* Continue the child ignoring the SIGSTOP and tracing all
|
||||
@ -1151,7 +1151,7 @@ ATF_TC_BODY(ptrace__new_child_pl_syscall_code_thread, tc)
|
||||
sizeof(pl)) != -1);
|
||||
ATF_REQUIRE((pl.pl_flags & PL_FLAG_SCX) != 0);
|
||||
ATF_REQUIRE(pl.pl_syscall_code != 0);
|
||||
if (pl.pl_lwpid != main)
|
||||
if (pl.pl_lwpid != mainpid)
|
||||
/* New thread seen. */
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user