Left: | ||
Right: |
OLD | NEW |
---|---|
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // +build cgo,!netgo | |
6 | |
5 package net | 7 package net |
6 | 8 |
7 /* | 9 /* |
8 #include <netdb.h> | 10 #include <netdb.h> |
9 */ | 11 */ |
10 import "C" | 12 import "C" |
11 | 13 |
12 func cgoAddrInfoFlags() C.int { | 14 func cgoAddrInfoFlags() C.int { |
13 return C.AI_CANONNAME | 15 return C.AI_CANONNAME |
14 } | 16 } |
OLD | NEW |