aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/net
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2012-02-07 19:26:30 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-02-07 19:26:30 +0000
commitb806269c9bfe8527dae3f634f5696ec95c5c38e4 (patch)
tree7a4a7ef3281dc5d38c6298df6b666d0b18f5eb8f /libgo/go/net
parent85dcef0d4194393a9de3cec41fc41331b62a909f (diff)
downloadgcc-b806269c9bfe8527dae3f634f5696ec95c5c38e4.zip
gcc-b806269c9bfe8527dae3f634f5696ec95c5c38e4.tar.gz
gcc-b806269c9bfe8527dae3f634f5696ec95c5c38e4.tar.bz2
compiler, libgo: Use //extern comments rather than __asm__.
From-SVN: r183981
Diffstat (limited to 'libgo/go/net')
-rw-r--r--libgo/go/net/cgo_unix.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/libgo/go/net/cgo_unix.go b/libgo/go/net/cgo_unix.go
index 1a0f406..e96df66 100644
--- a/libgo/go/net/cgo_unix.go
+++ b/libgo/go/net/cgo_unix.go
@@ -21,9 +21,14 @@ import (
"unsafe"
)
-func libc_getaddrinfo(node *byte, service *byte, hints *syscall.Addrinfo, res **syscall.Addrinfo) int __asm__ ("getaddrinfo")
-func libc_freeaddrinfo(res *syscall.Addrinfo) __asm__ ("freeaddrinfo")
-func libc_gai_strerror(errcode int) *byte __asm__ ("gai_strerror")
+//extern getaddrinfo
+func libc_getaddrinfo(node *byte, service *byte, hints *syscall.Addrinfo, res **syscall.Addrinfo) int
+
+//extern freeaddrinfo
+func libc_freeaddrinfo(res *syscall.Addrinfo)
+
+//extern gai_strerror
+func libc_gai_strerror(errcode int) *byte
// bytePtrToString takes a NUL-terminated array of bytes and convert
// it to a Go string.