diff --git a/plan9/race.go b/plan9/race.go index c7344aa9..c7ff5df2 100644 --- a/plan9/race.go +++ b/plan9/race.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build race +// +build plan9,race package plan9 diff --git a/plan9/race0.go b/plan9/race0.go index 49cfb806..06cabcc7 100644 --- a/plan9/race0.go +++ b/plan9/race0.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build !race +// +build plan9,!race package plan9 diff --git a/plan9/str.go b/plan9/str.go index 93a1777f..4f7f9ad7 100644 --- a/plan9/str.go +++ b/plan9/str.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build plan9 + package plan9 func itoa(val int) string { // do it here rather than with fmt to avoid dependency diff --git a/plan9/syscall.go b/plan9/syscall.go index 22a65885..18a63077 100644 --- a/plan9/syscall.go +++ b/plan9/syscall.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build plan9 + // Package plan9 contains an interface to the low-level operating system // primitives. OS details vary depending on the underlying system, and // by default, godoc will display the OS-specific documentation for the current diff --git a/plan9/syscall_test.go b/plan9/syscall_test.go index 1e7acb97..9b8c7dae 100644 --- a/plan9/syscall_test.go +++ b/plan9/syscall_test.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build plan9 + package plan9_test import ( diff --git a/unix/creds_test.go b/unix/creds_test.go index 90e30807..78b3dbd4 100644 --- a/unix/creds_test.go +++ b/unix/creds_test.go @@ -11,7 +11,8 @@ import ( "net" "os" "testing" - "unix" + + "code.google.com/p/go.sys/unix" ) // TestSCMCredentials tests the sending and receiving of credentials diff --git a/unix/flock.go b/unix/flock.go index 5ba9c7dd..ce67a595 100644 --- a/unix/flock.go +++ b/unix/flock.go @@ -4,6 +4,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build darwin dragonfly freebsd linux netbsd openbsd + package unix import "unsafe" diff --git a/unix/mksyscall_solaris.pl b/unix/mksyscall_solaris.pl index f05c3de4..1f9f30ec 100755 --- a/unix/mksyscall_solaris.pl +++ b/unix/mksyscall_solaris.pl @@ -264,7 +264,7 @@ package $package import "unsafe" EOF -print "import \"unix\"\n" if $package ne "unix"; +print "import \"code.google.com/p/go.sys/unix\"\n" if $package ne "unix"; print <