1
0
mirror of https://github.com/golang/go synced 2024-11-19 21:24:40 -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:
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"; gohostarch = "amd64";
#elif defined(__linux__) #elif defined(__linux__)
gohostos = "linux"; gohostos = "linux";
#elif defined(__FreeBSD__)
gohostos = "freebsd";
#elif defined(__OpenBSD__)
gohostos = "openbsd";
#elif defined(__NetBSD__)
gohostos = "netbsd";
#else #else
fatal("unknown operating system"); fatal("unknown operating system");
#endif #endif