diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-10-31 21:55:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-10-31 21:55:22 +0000 |
commit | 7e547d7b317e52d0fbf4270aadcf47862d5faf73 (patch) | |
tree | 5e1588449e41a92b99c8b291e402396d43ad1ac1 /libgo | |
parent | 82a595022800fde2004b64570983ea850030eeeb (diff) | |
download | gcc-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.go | 4 |
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 { |