os,syscall: fix windows build

make syscall.ProcAttr.Files be []uintptr

all.bash passes on Linux.
things seem to compile on GOOS={darwin,windows}

R=golang-dev, mattn.jp, alex.brainman, rsc
CC=golang-dev
https://golang.org/cl/5653055
This commit is contained in:
Brad Fitzpatrick 2012-02-11 08:47:19 +11:00
parent 09f6a49194
commit fbab6d8512
8 changed files with 19 additions and 15 deletions

View file

@ -39,8 +39,10 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
i int
)
// guard against side effects of shuffling fds below.
fd := append([]int(nil), attr.Files...)
fd := make([]int, len(attr.Files))
for i, ufd := range attr.Files {
fd[i] = int(ufd)
}
darwin := runtime.GOOS == "darwin"