]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: add BSD gohostos cases
authorRuss Cox <rsc@golang.org>
Sat, 4 Feb 2012 06:39:29 +0000 (01:39 -0500)
committerRuss Cox <rsc@golang.org>
Sat, 4 Feb 2012 06:39:29 +0000 (01:39 -0500)
Should fix FreeBSD build.

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/5629050

src/cmd/dist/unix.c

index d62ebcaa83362cdec6cee572255f89327aba8ab7..2c3624ad54bee04f323ee06b84cfbc3bf370d428 100644 (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