mirror of
https://github.com/golang/go
synced 2024-11-20 08:14:41 -07:00
fix build - nacl stubs
TBR=nigeltao CC=golang-dev https://golang.org/cl/1259042
This commit is contained in:
parent
8c2bc4419b
commit
566f598046
@ -241,6 +241,7 @@ const (
|
|||||||
IPPROTO_TCP
|
IPPROTO_TCP
|
||||||
SOCK_DGRAM
|
SOCK_DGRAM
|
||||||
SOCK_STREAM
|
SOCK_STREAM
|
||||||
|
SOCK_RAW
|
||||||
SOL_SOCKET
|
SOL_SOCKET
|
||||||
SOMAXCONN
|
SOMAXCONN
|
||||||
SO_DONTROUTE
|
SO_DONTROUTE
|
||||||
@ -271,6 +272,8 @@ func Getpeername(fd int) (sa Sockaddr, errno int) {
|
|||||||
|
|
||||||
func Bind(fd int, sa Sockaddr) (errno int) { return ENACL }
|
func Bind(fd int, sa Sockaddr) (errno int) { return ENACL }
|
||||||
|
|
||||||
|
func BindToDevice(fd int, device string) (errno int) { return ENACL }
|
||||||
|
|
||||||
func Connect(fd int, sa Sockaddr) (errno int) { return ENACL }
|
func Connect(fd int, sa Sockaddr) (errno int) { return ENACL }
|
||||||
|
|
||||||
func Socket(domain, typ, proto int) (fd, errno int) {
|
func Socket(domain, typ, proto int) (fd, errno int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user