]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: fix build
authorMikio Hara <mikioh.mikioh@gmail.com>
Wed, 29 Jun 2011 02:26:31 +0000 (22:26 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 29 Jun 2011 02:26:31 +0000 (22:26 -0400)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4629082

src/pkg/runtime/cgo/darwin_386.c

index 21c13657591bdf923ea9c4bae3acb52de68c441a..6d4e259be0366b2c3b62fc12db9edcd660cc17ea 100644 (file)
@@ -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();
        }
 }