2013-02-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
[official-gcc.git] / libgo / go / net / cgo_bsd.go
blob27c3e9acb94b0cb5f3f95f6069c7dd8a5086cefa
1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build darwin freebsd
7 package net
9 /*
10 #include <netdb.h>
13 import "syscall"
15 func cgoAddrInfoFlags() int {
16 return (syscall.AI_CANONNAME | syscall.AI_V4MAPPED | syscall.AI_ALL) & syscall.AI_MASK