diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2013-01-26 09:57:06 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2013-01-26 09:57:06 +0800 |
| commit | 4019d0e4243cea82b033e12da75d49f82419f2cd (patch) | |
| tree | 0af9218a0f630a87cb5fc5fec84411fbd8b4cdc3 /src/pkg/runtime/malloc.h | |
| parent | 5a49acc72fd41a8a9b02ac9f4e4c9c41d1bf8c42 (diff) | |
| download | go-4019d0e4243cea82b033e12da75d49f82419f2cd.tar.xz | |
runtime: avoid defining the same variable in more than one translation unit
For gccgo runtime and Darwin where -fno-common is the default.
R=iant, dave
CC=golang-dev
https://golang.org/cl/7094061
Diffstat (limited to 'src/pkg/runtime/malloc.h')
| -rw-r--r-- | src/pkg/runtime/malloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index e6138cfaec..2c34398a72 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -446,7 +446,7 @@ void runtime·markallocated(void *v, uintptr n, bool noptr); void runtime·checkallocated(void *v, uintptr n); void runtime·markfreed(void *v, uintptr n); void runtime·checkfreed(void *v, uintptr n); -int32 runtime·checking; +extern int32 runtime·checking; void runtime·markspan(void *v, uintptr size, uintptr n, bool leftover); void runtime·unmarkspan(void *v, uintptr size); bool runtime·blockspecial(void*); |
