1
0
mirror of https://github.com/golang/go synced 2024-10-02 12:28:33 -06: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:
Russ Cox 2012-02-04 01:39:29 -05:00
parent 7e5dc928a4
commit 68576506d6

6
src/cmd/dist/unix.c vendored
View File

@ -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