From patchwork Mon Jul 26 09:33:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [gccgo] Fix libgo RTEMS build Date: Sun, 25 Jul 2010 23:33:25 -0000 From: Ian Taylor X-Patchwork-Id: 59903 Message-Id: To: gcc-patches@gcc.gnu.org This patch from Vinu Rajashekhar fixes the RTEMS build of libgo after the garbage collection patches. Committed to gccgo branch. Ian diff -r b3c3c5c731e9 libgo/runtime/go-go.c --- a/libgo/runtime/go-go.c Fri Jul 23 13:33:20 2010 -0700 +++ b/libgo/runtime/go-go.c Mon Jul 26 02:31:26 2010 -0700 @@ -50,6 +50,10 @@ #define GO_SIG_START (SIGRTMIN + 1) #define GO_SIG_STOP (SIGRTMIN + 2) +#ifndef SA_RESTART + #define SA_RESTART 0 +#endif + /* A doubly linked list of the threads we have started. */ struct __go_thread_id @@ -416,7 +420,7 @@ with __go_thread_ids_lock held. */ void -__go_scanstacks (void (*scan) (int32_t, unsigned char *, int64_t)) +__go_scanstacks (void (*scan) (int32, unsigned char *, int64_t)) { pthread_t me; struct __go_thread_id *p;