diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-02-07 04:45:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-02-07 04:45:01 +0000 |
commit | 4a3e25712f25271876e83dfafe8ff2df4f643df7 (patch) | |
tree | f08bcfb2d4ad242945fd0534e39ed5753e4aab62 /libgo/go/os | |
parent | 4321f202f985f659e0150ee72ed3e14e554f9735 (diff) | |
download | gcc-4a3e25712f25271876e83dfafe8ff2df4f643df7.zip gcc-4a3e25712f25271876e83dfafe8ff2df4f643df7.tar.gz gcc-4a3e25712f25271876e83dfafe8ff2df4f643df7.tar.bz2 |
os, net, crypto/x509: add hurd support
Patch by Svante Signell.
Reviewed-on: https://go-review.googlesource.com/c/161519
From-SVN: r268604
Diffstat (limited to 'libgo/go/os')
-rw-r--r-- | libgo/go/os/executable_procfs.go | 2 | ||||
-rw-r--r-- | libgo/go/os/pipe_glibc.go (renamed from libgo/go/os/pipe_linux.go) | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libgo/go/os/executable_procfs.go b/libgo/go/os/executable_procfs.go index d6ac270..e690103 100644 --- a/libgo/go/os/executable_procfs.go +++ b/libgo/go/os/executable_procfs.go @@ -19,7 +19,7 @@ var executablePath, executablePathErr = func() (string, error) { switch runtime.GOOS { default: return "", errors.New("Executable not implemented for " + runtime.GOOS) - case "linux", "android": + case "hurd", "linux", "android": procfn = "/proc/self/exe" case "netbsd": procfn = "/proc/curproc/exe" diff --git a/libgo/go/os/pipe_linux.go b/libgo/go/os/pipe_glibc.go index acd7b88..31b144e 100644 --- a/libgo/go/os/pipe_linux.go +++ b/libgo/go/os/pipe_glibc.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build hurd linux + package os import "syscall" |