Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
a8c4da99
Commit
a8c4da99
authored
Oct 30, 2010
by
Alex Brainman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: fix windows build
R=golang-dev CC=golang-dev
https://golang.org/cl/2713043
parent
7812b796
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/pkg/syscall/syscall_windows.go
src/pkg/syscall/syscall_windows.go
+3
-0
No files found.
src/pkg/syscall/syscall_windows.go
View file @
a8c4da99
...
...
@@ -303,6 +303,9 @@ func getStdHandle(h int32) (fd int) {
}
func
Stat
(
path
string
,
stat
*
Stat_t
)
(
errno
int
)
{
if
len
(
path
)
==
0
{
return
ERROR_PATH_NOT_FOUND
}
// Remove trailing slash.
if
path
[
len
(
path
)
-
1
]
==
'/'
||
path
[
len
(
path
)
-
1
]
==
'\\'
{
// Check if we're given root directory ("\" or "c:\").
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment