diff options
Diffstat (limited to 'src/pkg/os/file_posix.go')
-rw-r--r-- | src/pkg/os/file_posix.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/os/file_posix.go b/src/pkg/os/file_posix.go index 14ddd92c4..526914956 100644 --- a/src/pkg/os/file_posix.go +++ b/src/pkg/os/file_posix.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 darwin freebsd linux openbsd windows + package os import ( @@ -46,7 +48,7 @@ func Remove(name string) Error { // both errors will be ENOTDIR, so it's okay to // use the error from unlink. // For windows syscall.ENOTDIR is set - // to syscall.ERROR_DIRECTORY, hopefully it should + // to syscall.ERROR_PATH_NOT_FOUND, hopefully it should // do the trick. if e1 != syscall.ENOTDIR { e = e1 |