Commit 58993e51 authored by Shenghou Ma's avatar Shenghou Ma

net: fix cgoAddrInfoFlags() on FreeBSD

        CL 6250075 removed AI_MASK mask on all BSD variants,
        however FreeBSD's AI_MASK does not include AI_V4MAPPED
        and AI_ALL, and its libc is strict about the ai_flags.

        This will fix the FreeBSD builder.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6305054
parent 81368d9b
...@@ -12,5 +12,5 @@ package net ...@@ -12,5 +12,5 @@ package net
import "C" import "C"
func cgoAddrInfoFlags() C.int { func cgoAddrInfoFlags() C.int {
return C.AI_CANONNAME | C.AI_V4MAPPED | C.AI_ALL return (C.AI_CANONNAME | C.AI_V4MAPPED | C.AI_ALL) & C.AI_MASK
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment