mirror of
https://github.com/golang/go
synced 2024-11-24 17:40:14 -07:00
net: fix Windows build
R=rsc CC=golang-dev https://golang.org/cl/4314042
This commit is contained in:
parent
e83d69647f
commit
91bcdb620b
@ -4,14 +4,22 @@
|
|||||||
|
|
||||||
package net
|
package net
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
func FileConn(f *os.File) (c Conn, err os.Error) {
|
func FileConn(f *os.File) (c Conn, err os.Error) {
|
||||||
return nil, os.EWINDOWS
|
// TODO: Implement this
|
||||||
|
return nil, os.NewSyscallError("FileConn", syscall.EWINDOWS)
|
||||||
}
|
}
|
||||||
|
|
||||||
func FileListener(f *os.File) (l Listener, err os.Error) {
|
func FileListener(f *os.File) (l Listener, err os.Error) {
|
||||||
return nil, os.EWINDOWS
|
// TODO: Implement this
|
||||||
|
return nil, os.NewSyscallError("FileListener", syscall.EWINDOWS)
|
||||||
}
|
}
|
||||||
|
|
||||||
func FilePacketConn(f *os.File) (c PacketConn, err os.Error) {
|
func FilePacketConn(f *os.File) (c PacketConn, err os.Error) {
|
||||||
return nil, os.EWINDOWS
|
// TODO: Implement this
|
||||||
|
return nil, os.NewSyscallError("FilePacketConn", syscall.EWINDOWS)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user