2011-05-20 00:18:15 +00: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 19:49:01 +00:00
|
|
|
// +build !netgo
|
2014-07-19 08:53:52 +00:00
|
|
|
// +build darwin dragonfly freebsd solaris
|
2011-10-26 23:57:58 +00:00
|
|
|
|
2011-05-20 00:18:15 +00:00
|
|
|
package net
|
|
|
|
|
|
|
|
/*
|
|
|
|
#include <netdb.h>
|
|
|
|
*/
|
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
2012-10-23 04:31:11 +00:00
|
|
|
func cgoAddrInfoFlags() int {
|
|
|
|
return (syscall.AI_CANONNAME | syscall.AI_V4MAPPED | syscall.AI_ALL) & syscall.AI_MASK
|
2011-05-20 00:18:15 +00:00
|
|
|
}
|