diff mbox

[gccgo] Fix libgo RTEMS build

Message ID mcrvd82si3e.fsf@google.com
State New
Headers show

Commit Message

Ian Lance Taylor July 26, 2010, 9:33 a.m. UTC
This patch from Vinu Rajashekhar fixes the RTEMS build of libgo after
the garbage collection patches.  Committed to gccgo branch.

Ian
diff mbox

Patch

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;