diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-07 19:26:30 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-07 19:26:30 +0000 |
commit | 23d0274cb023604addec4cb72aa915312cf3df76 (patch) | |
tree | 7a4a7ef3281dc5d38c6298df6b666d0b18f5eb8f /libgo/go/net | |
parent | 22a1ceb390553c3a53d539ef57145a146c401282 (diff) | |
download | gcc-23d0274cb023604addec4cb72aa915312cf3df76.tar.gz |
compiler, libgo: Use //extern comments rather than __asm__.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183981 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/net')
-rw-r--r-- | libgo/go/net/cgo_unix.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libgo/go/net/cgo_unix.go b/libgo/go/net/cgo_unix.go index 1a0f4063c5a..e96df669f33 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. |