2011-05-20 02:18:15 +02:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2013-11-06 20:49:01 +01:00
|
|
|
// +build !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"
|
|
|
|
|
2012-10-23 06:31:11 +02:00
|
|
|
func cgoAddrInfoFlags() int {
|
|
|
|
return (syscall.AI_CANONNAME | syscall.AI_V4MAPPED | syscall.AI_ALL) & syscall.AI_MASK
|
2011-05-20 02:18:15 +02:00
|
|
|
}
|