mirror of
https://github.com/golang/go
synced 2024-11-22 01:04:40 -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:
parent
1170a6460f
commit
1c42db8835
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user