aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-10-31 21:55:22 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-10-31 21:55:22 +0000
commit7e547d7b317e52d0fbf4270aadcf47862d5faf73 (patch)
tree5e1588449e41a92b99c8b291e402396d43ad1ac1 /libgo
parent82a595022800fde2004b64570983ea850030eeeb (diff)
downloadgcc-7e547d7b317e52d0fbf4270aadcf47862d5faf73.zip
gcc-7e547d7b317e52d0fbf4270aadcf47862d5faf73.tar.gz
gcc-7e547d7b317e52d0fbf4270aadcf47862d5faf73.tar.bz2
syscall: Fix Errstr on systems without strerror_r.
From-SVN: r180714
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/syscall/errstr_nor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/syscall/errstr_nor.go b/libgo/go/syscall/errstr_nor.go
index b331d0e..2fb61c2 100644
--- a/libgo/go/syscall/errstr_nor.go
+++ b/libgo/go/syscall/errstr_nor.go
@@ -11,7 +11,7 @@ import (
"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 @@ var errstr_lock sync.Mutex
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 {