2016-07-23 02:15:38 +08:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-05-20 08:18:15 +08:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2021-07-31 05:28:58 +08:00
|
|
|
//go:build cgo && !netgo && (darwin || dragonfly || freebsd)
|
2011-10-27 07:57:58 +08:00
|
|
|
|
2011-05-20 08:18:15 +08:00
|
|
|
package net
|
|
|
|
|
|
|
|
/*
|
|
|
|
#include <netdb.h>
|
|
|
|
*/
|
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
2015-10-31 08:59:47 +08:00
|
|
|
const cgoAddrInfoFlags = (syscall.AI_CANONNAME | syscall.AI_V4MAPPED | syscall.AI_ALL) & syscall.AI_MASK
|