Rainer Orth <r...@cebitec.uni-bielefeld.de> writes: > /vol/gcc/src/hg/trunk/local/libgo/go/syscall/errstr_nor.go:22:8: error: > referenc > e to undefined name 'libc_strerror' > make[4]: *** [syscall/syscall.lo] Error 1
Sorry about that. I thought I had tested that, but evidently not. Fixed like so. Committed to mainline. Ian
diff -r 56a1bd1d907a libgo/go/syscall/errstr_nor.go --- a/libgo/go/syscall/errstr_nor.go Mon Oct 31 14:41:55 2011 -0700 +++ b/libgo/go/syscall/errstr_nor.go Mon Oct 31 14:53:22 2011 -0700 @@ -11,7 +11,7 @@ "unsafe" ) -//sysnb strerror(errnum int) *byte +//sysnb strerror(errnum int) (buf *byte) //strerror(errnum int) *byte var errstr_lock sync.Mutex @@ -19,7 +19,7 @@ func Errstr(errno int) string { errstr_lock.Lock() - bp := libc_strerror(errno) + bp := strerror(errno) b := (*[1000]byte)(unsafe.Pointer(bp)) i := 0 for b[i] != 0 {