go.sys/windows: import syscall

Simple oversight.

LGTM=alex.brainman
R=alex.brainman
CC=golang-codereviews, rsc
https://golang.org/cl/121660043
This commit is contained in:
Rob Pike
2014-08-13 17:45:19 -07:00
parent 9828c4dfac
commit 73a4d37962
5 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
"syscall"
"testing"
"code.google.com/p/go.sys/windows"
@@ -65,7 +66,7 @@ func ExampleLoadLibrary() {
if err != nil {
abort("GetProcAddress", err)
}
r, _, _ := windows.Syscall(uintptr(proc), 0, 0, 0, 0)
r, _, _ := syscall.Syscall(uintptr(proc), 0, 0, 0, 0)
major := byte(r)
minor := uint8(r >> 8)
build := uint16(r >> 16)