Fix Solaris build.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 25 Oct 2011 17:45:55 +0000 (17:45 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 25 Oct 2011 17:45:55 +0000 (17:45 +0000)
From Rainer Orth.

From-SVN: r180439

libgo/go/syscall/wait.c
libgo/mksysinfo.sh

index cee84c9cb525cc138f0d0c007970166160b59a8a..d3c90d74ea1241674ff4ffedec23d8e1ed7defe9 100644 (file)
@@ -95,7 +95,7 @@ extern int TrapCause (uint32_t *w)
   __asm__ ("libgo_syscall.syscall.TrapCause.N32_libgo_syscall.syscall.WaitStatus");
 
 int
-TrapCause (uint32_t *w)
+TrapCause (uint32_t *w __attribute__ ((unused)))
 {
 #ifndef __linux__
   return -1;
index 6bc10ee0c8af46e8e8b935033ec51ba7aafc2b68..8838fd75a92da667bafddd98198d17612c8254a4 100755 (executable)
@@ -251,7 +251,7 @@ if ! grep '^const PTRACE_EVENT_EXIT' ${OUT} > /dev/null 2>&1; then
   echo "const PTRACE_EVENT_EXIT = 6" >> ${OUT}
 fi
 if ! grep '^const _PTRACE_TRACEME' ${OUT} > /dev/null 2>&1; then
-  echo "const PTRACE_TRACEME = 0" >> ${OUT}
+  echo "const _PTRACE_TRACEME = 0" >> ${OUT}
 fi
 
 # The registers returned by PTRACE_GETREGS.  This is probably