mirror of
https://github.com/golang/go
synced 2024-11-19 18:44:41 -07:00
cmd/dist: add BSD gohostos cases
Should fix FreeBSD build. TBR=golang-dev CC=golang-dev https://golang.org/cl/5629050
This commit is contained in:
parent
7e5dc928a4
commit
68576506d6
6
src/cmd/dist/unix.c
vendored
6
src/cmd/dist/unix.c
vendored
@ -641,6 +641,12 @@ main(int argc, char **argv)
|
||||
gohostarch = "amd64";
|
||||
#elif defined(__linux__)
|
||||
gohostos = "linux";
|
||||
#elif defined(__FreeBSD__)
|
||||
gohostos = "freebsd";
|
||||
#elif defined(__OpenBSD__)
|
||||
gohostos = "openbsd";
|
||||
#elif defined(__NetBSD__)
|
||||
gohostos = "netbsd";
|
||||
#else
|
||||
fatal("unknown operating system");
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user