Index: src/pkg/runtime/cgo/gcc_netbsd_amd64.c |
=================================================================== |
copy from src/pkg/runtime/cgo/gcc_freebsd_amd64.c |
copy to src/pkg/runtime/cgo/gcc_netbsd_amd64.c |
--- a/src/pkg/runtime/cgo/gcc_freebsd_amd64.c |
+++ b/src/pkg/runtime/cgo/gcc_netbsd_amd64.c |
@@ -3,7 +3,6 @@ |
// license that can be found in the LICENSE file. |
#include <sys/types.h> |
-#include <sys/signalvar.h> |
#include <pthread.h> |
#include <signal.h> |
#include "libcgo.h" |
@@ -33,7 +32,7 @@ |
size_t size; |
int err; |
- SIGFILLSET(ign); |
+ sigfillset(&ign); |
sigprocmask(SIG_SETMASK, &ign, &oset); |
pthread_attr_init(&attr); |
@@ -67,7 +66,7 @@ |
ts.g->stackguard = (uintptr)&ts - ts.g->stackguard + 4096; |
/* |
- * Set specific keys. On FreeBSD/ELF, the thread local storage |
+ * Set specific keys. On NetBSD/ELF, the thread local storage |
* is just before %fs:0. Our dynamic 6.out's reserve 16 bytes |
* for the two words g and m at %fs:-16 and %fs:-8. |
*/ |