From 161deaa85c4ed97f16fe3905d6de5ad3be24b13a Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Tue, 28 Jun 2011 22:26:31 -0400 Subject: [PATCH] runtime/cgo: fix build R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4629082 --- src/pkg/runtime/cgo/darwin_386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/cgo/darwin_386.c b/src/pkg/runtime/cgo/darwin_386.c index 21c13657591..6d4e259be03 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(); } }