mirror of
https://github.com/golang/go
synced 2024-11-22 06:44:40 -07:00
net: fix windows build
TBR=r CC=golang-dev https://golang.org/cl/4425059
This commit is contained in:
parent
220f83134a
commit
6e928e411b
@ -47,7 +47,7 @@ func goLookupIP(name string) (addrs []IP, err os.Error) {
|
|||||||
return addrs, nil
|
return addrs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func LookupCNAME(name string) (cname string, err os.Error) {
|
func goLookupCNAME(name string) (cname string, err os.Error) {
|
||||||
var r *syscall.DNSRecord
|
var r *syscall.DNSRecord
|
||||||
e := syscall.DnsQuery(name, syscall.DNS_TYPE_CNAME, 0, nil, &r, nil)
|
e := syscall.DnsQuery(name, syscall.DNS_TYPE_CNAME, 0, nil, &r, nil)
|
||||||
if int(e) != 0 {
|
if int(e) != 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user