From 1c42db883522997230819f512a92622434838842 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 7 Nov 2011 13:15:06 -0500 Subject: [PATCH] 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 --- src/pkg/runtime/cgo/libcgo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). -- 2.50.0