]> Cypherpunks repositories - gostls13.git/commit
os: fix plan9 build
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 6 Aug 2013 19:04:08 +0000 (12:04 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 6 Aug 2013 19:04:08 +0000 (12:04 -0700)
commitad119b9c4dcae8389a3700c245a923b0ebe449cd
tree34940c6317626de7b0e2839a640403d82cfde629
parent911534592559239185200f73b214b9b11a62b848
os: fix plan9 build

I broke it with the darwin getwd attrlist stuff (0583e9d36dd).
plan9 doesn't have syscall.ENOTSUP.

It's in api/go1.txt as a symbol always available (not context-specific):

pkg syscall, const ENOTSUP Errno

... but plan9 isn't considered by cmd/api, so it only looks
universally available.  Alternatively, we could add a fake ENOTSUP
to plan9, but they were making efforts earlier to clean their
syscall package, so I'd prefer not to dump more in it.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12509044
src/pkg/os/getwd.go
src/pkg/os/getwd_darwin.go [new file with mode: 0644]