diff options
Diffstat (limited to 'system/gcc/339-gccgo-errstr.patch')
-rw-r--r-- | system/gcc/339-gccgo-errstr.patch | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/system/gcc/339-gccgo-errstr.patch b/system/gcc/339-gccgo-errstr.patch index f78d18aa4..f9a293f22 100644 --- a/system/gcc/339-gccgo-errstr.patch +++ b/system/gcc/339-gccgo-errstr.patch @@ -1,7 +1,7 @@ ---- gcc-8.3.0/libgo/go/syscall/errstr_linux.go 2016-08-06 00:36:33.000000000 +0000 -+++ /dev/null 2019-04-08 15:05:18.560000000 +0000 -@@ -1,31 +0,0 @@ --// errstr_linux.go -- GNU/Linux specific error strings. +--- gcc-8.3.0/libgo/go/syscall/errstr_glibc.go 2020-12-24 02:59:14.000000000 +0000 ++++ /dev/null 2020-12-07 00:59:39.800000000 +0000 +@@ -1,33 +0,0 @@ +-// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings. - -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style @@ -10,6 +10,8 @@ -// We use this rather than errstr.go because on GNU/Linux sterror_r -// returns a pointer to the error message, and may not use buf at all. - +-// +build hurd linux +- -package syscall - -import "unsafe" @@ -32,14 +34,13 @@ - } - return string(b[:i]) -} ---- gcc-8.3.0/libgo/go/syscall/errstr.go.old 2016-08-06 00:36:33.000000000 +0000 -+++ gcc-8.3.0/libgo/go/syscall/errstr.go 2019-04-25 05:41:27.915806277 +0000 -@@ -4,8 +4,6 @@ - // Use of this source code is governed by a BSD-style +--- gcc-8.3.0/libgo/go/syscall/errstr.go 2020-12-23 22:05:12.000000000 +0000 ++++ gcc-8.3.0/libgo/go/syscall/errstr.go 2020-12-23 22:39:30.387843188 +0000 +@@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. + // +build !hurd -// +build !linux -- + package syscall - //sysnb strerror_r(errnum int, buf []byte) (err Errno) |