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