src: make use of runtime.GOOS, GOARCH instead of syscall.OS, ARCH

R=rsc, r
CC=golang-dev
https://golang.org/cl/5545048
This commit is contained in:
Mikio Hara 2012-01-14 06:40:55 +09:00
parent 5f7337769c
commit 92c8df46c6
35 changed files with 51 additions and 83 deletions

View file

@ -9,6 +9,7 @@
package syscall
import (
"runtime"
"sync"
"unsafe"
)
@ -131,7 +132,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
argvp := StringSlicePtr(argv)
envvp := StringSlicePtr(attr.Env)
if OS == "freebsd" && len(argv[0]) > len(argv0) {
if runtime.GOOS == "freebsd" && len(argv[0]) > len(argv0) {
argvp[0] = argv0p
}