summaryrefslogtreecommitdiffstats
path: root/libgo/go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-31 21:55:22 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-31 21:55:22 +0000
commit30303cf89eae625dab4a6a9262fdc0bd87ce9949 (patch)
tree5e1588449e41a92b99c8b291e402396d43ad1ac1 /libgo/go
parentd86c078aa7bcb3f486dbb5266a5c20294ec1f07e (diff)
downloadppe42-gcc-30303cf89eae625dab4a6a9262fdc0bd87ce9949.tar.gz
ppe42-gcc-30303cf89eae625dab4a6a9262fdc0bd87ce9949.zip
syscall: Fix Errstr on systems without strerror_r.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180714 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go')
-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 b331d0eb965..2fb61c29adc 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 {
OpenPOWER on IntegriCloud