Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(214)

Side by Side Diff: src/pkg/net/cgo_openbsd.go

Issue 7100050: code review 7100050: net: introduce noncgo_net build tag to disable cgo only... (Closed)
Patch Set: diff -r 3361afb4f8de https://code.google.com/p/go/ Created 10 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/net/cgo_netbsd.go ('k') | src/pkg/net/cgo_stub.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « src/pkg/net/cgo_netbsd.go ('k') | src/pkg/net/cgo_stub.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b