1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:54:39 -07:00

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 #2167.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5364045
This commit is contained in:
Russ Cox 2011-11-07 13:15:06 -05:00
parent 1170a6460f
commit 1c42db8835

View File

@ -42,7 +42,7 @@ struct ThreadStart
* Makes a local copy of the ThreadStart and * Makes a local copy of the ThreadStart and
* calls libcgo_sys_thread_start(ts). * 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). * Creates the new operating system thread (OS, arch dependent).