From: Russ Cox Date: Mon, 7 Nov 2011 18:15:06 +0000 (-0500) Subject: runtime/cgo: fix data declaration to be extern X-Git-Tag: weekly.2011-11-08~14 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1c42db883522997230819f512a92622434838842;p=gostls13.git 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 --- diff --git a/src/pkg/runtime/cgo/libcgo.h b/src/pkg/runtime/cgo/libcgo.h index 91032959c7..c31d19d76d 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).