1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:54:40 -07:00

runtime/cgo: fix build

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4629082
This commit is contained in:
Mikio Hara 2011-06-28 22:26:31 -04:00 committed by Russ Cox
parent cf143e9dbf
commit 161deaa85c

View File

@ -120,7 +120,7 @@ libcgo_sys_thread_start(ThreadStart *ts)
ts->g->stackguard = size; ts->g->stackguard = size;
err = pthread_create(&p, &attr, threadentry, ts); err = pthread_create(&p, &attr, threadentry, ts);
if (err != 0) { 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(); abort();
} }
} }