diff options
author | Russ Cox <rsc@golang.org> | 2011-11-07 13:15:06 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-11-07 13:15:06 -0500 |
commit | 5b07b06e9bac0bac5cb0dfa1afe8895e295264dd (patch) | |
tree | 6d07d738affbf672a611769e75e7cce0e6d6f723 | |
parent | 7172d2be769c6bd19b69d9b87245e0b1371b7935 (diff) | |
download | go-5b07b06e9bac0bac5cb0dfa1afe8895e295264dd.tar.gz |
runtime/cgo: fix data declaration to be extern
Otherwise some OS X toolchains complain about the redeclaration
of libcgo_thread_start by multiple object files. The real definition
is in util.c.
Fixes issue 2167.
R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/5364045
-rw-r--r-- | src/pkg/runtime/cgo/libcgo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/cgo/libcgo.h b/src/pkg/runtime/cgo/libcgo.h index 91032959c..c31d19d76 100644 --- a/src/pkg/runtime/cgo/libcgo.h +++ b/src/pkg/runtime/cgo/libcgo.h @@ -42,7 +42,7 @@ struct ThreadStart * Makes a local copy of the ThreadStart and * calls libcgo_sys_thread_start(ts). */ -void (*libcgo_thread_start)(ThreadStart *ts); +extern void (*libcgo_thread_start)(ThreadStart *ts); /* * Creates the new operating system thread (OS, arch dependent). |