Commit f9367b7c by Ian Lance Taylor

Fix Solaris build.

From Rainer Orth.

From-SVN: r180439
parent f29ce5f5
...@@ -95,7 +95,7 @@ extern int TrapCause (uint32_t *w) ...@@ -95,7 +95,7 @@ extern int TrapCause (uint32_t *w)
__asm__ ("libgo_syscall.syscall.TrapCause.N32_libgo_syscall.syscall.WaitStatus"); __asm__ ("libgo_syscall.syscall.TrapCause.N32_libgo_syscall.syscall.WaitStatus");
int int
TrapCause (uint32_t *w) TrapCause (uint32_t *w __attribute__ ((unused)))
{ {
#ifndef __linux__ #ifndef __linux__
return -1; return -1;
......
...@@ -251,7 +251,7 @@ if ! grep '^const PTRACE_EVENT_EXIT' ${OUT} > /dev/null 2>&1; then ...@@ -251,7 +251,7 @@ if ! grep '^const PTRACE_EVENT_EXIT' ${OUT} > /dev/null 2>&1; then
echo "const PTRACE_EVENT_EXIT = 6" >> ${OUT} echo "const PTRACE_EVENT_EXIT = 6" >> ${OUT}
fi fi
if ! grep '^const _PTRACE_TRACEME' ${OUT} > /dev/null 2>&1; then if ! grep '^const _PTRACE_TRACEME' ${OUT} > /dev/null 2>&1; then
echo "const PTRACE_TRACEME = 0" >> ${OUT} echo "const _PTRACE_TRACEME = 0" >> ${OUT}
fi fi
# The registers returned by PTRACE_GETREGS. This is probably # The registers returned by PTRACE_GETREGS. This is probably
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment