Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(208)

Unified Diff: src/pkg/runtime/cgo/gcc_netbsd_amd64.c

Issue 6261056: code review 6261056: cgo: enable cgo on netbsd/386 and netbsd/amd64 (Closed)
Patch Set: diff -r a98657dda373 https://go.googlecode.com/hg/ Created 12 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/cgo/gcc_netbsd_386.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
*/
« no previous file with comments | « src/pkg/runtime/cgo/gcc_netbsd_386.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b