Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-reuseport
Commits
d49feac6
Commit
d49feac6
authored
Jan 18, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unix -> syscall for 1.2/1.3
parent
182e6e1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
const_bsd.go
const_bsd.go
+3
-3
const_linux.go
const_linux.go
+2
-2
No files found.
const_bsd.go
View file @
d49feac6
...
...
@@ -3,8 +3,8 @@
package
reuseport
import
(
unix
"golang.org/x/sys/unix
"
"syscall
"
)
var
soReusePort
=
unix
.
SO_REUSEPORT
var
soReuseAddr
=
unix
.
SO_REUSEADDR
var
soReusePort
=
syscall
.
SO_REUSEPORT
var
soReuseAddr
=
syscall
.
SO_REUSEADDR
const_linux.go
View file @
d49feac6
...
...
@@ -3,8 +3,8 @@
package
reuseport
import
(
unix
"golang.org/x/sys/unix
"
"syscall
"
)
var
soReusePort
=
15
// this is not defined in unix go pkg.
var
soReuseAddr
=
unix
.
SO_REUSEADDR
var
soReuseAddr
=
syscall
.
SO_REUSEADDR
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