mirror of
https://github.com/golang/go
synced 2024-11-20 06:14:53 -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
|
||||
SOCK_DGRAM
|
||||
SOCK_STREAM
|
||||
SOCK_RAW
|
||||
SOL_SOCKET
|
||||
SOMAXCONN
|
||||
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 BindToDevice(fd int, device string) (errno int) { return ENACL }
|
||||
|
||||
func Connect(fd int, sa Sockaddr) (errno int) { return ENACL }
|
||||
|
||||
func Socket(domain, typ, proto int) (fd, errno int) {
|
||||
|
Loading…
Reference in New Issue
Block a user