Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
2cd5b014
Commit
2cd5b014
authored
Jan 28, 2013
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix windows build
R=golang-dev, minux.ma CC=golang-dev
https://golang.org/cl/7229050
parent
31f58dce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
sock_windows.go
src/pkg/net/sock_windows.go
+11
-0
No files found.
src/pkg/net/sock_windows.go
View file @
2cd5b014
...
...
@@ -41,3 +41,14 @@ func listenerSockaddr(s syscall.Handle, f int, la syscall.Sockaddr, toAddr func(
}
return
la
,
nil
}
func
sysSocket
(
f
,
t
,
p
int
)
(
syscall
.
Handle
,
error
)
{
// See ../syscall/exec_unix.go for description of ForkLock.
syscall
.
ForkLock
.
RLock
()
s
,
err
:=
syscall
.
Socket
(
f
,
t
,
p
)
if
err
==
nil
{
syscall
.
CloseOnExec
(
s
)
}
syscall
.
ForkLock
.
RUnlock
()
return
s
,
err
}
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