aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2011-06-28 22:26:31 -0400
committerRuss Cox <rsc@golang.org>2011-06-28 22:26:31 -0400
commit161deaa85c4ed97f16fe3905d6de5ad3be24b13a (patch)
tree85d069f1ad1645019d598cbe181602099aa3d3bb
parentcf143e9dbf6e3c5b0b2a97c76980b6d5bd5cc40f (diff)
downloadgo-161deaa85c4ed97f16fe3905d6de5ad3be24b13a.tar.gz
go-161deaa85c4ed97f16fe3905d6de5ad3be24b13a.zip
runtime/cgo: fix build
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4629082
-rw-r--r--src/pkg/runtime/cgo/darwin_386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/cgo/darwin_386.c b/src/pkg/runtime/cgo/darwin_386.c
index 21c1365759..6d4e259be0 100644
--- a/src/pkg/runtime/cgo/darwin_386.c
+++ b/src/pkg/runtime/cgo/darwin_386.c
@@ -120,7 +120,7 @@ libcgo_sys_thread_start(ThreadStart *ts)
ts->g->stackguard = size;
err = pthread_create(&p, &attr, threadentry, ts);
if (err != 0) {
- fprintf(stderr, "runtime/cgo: pthread_create failed: %s\n", strerror(error));
+ fprintf(stderr, "runtime/cgo: pthread_create failed: %s\n", strerror(err));
abort();
}
}