Message ID | yddboyxxr9e.fsf@manam.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes: > 2011-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> > > libgo: > * Makefile.am (go_net_sock_file): Use go/net/cgo_linux.go if > LIBGO_IS_IRIX or LIBGO_IS_SOLARIS. > (go_net_sock_file): Use go/net/sock_linux.go if > LIBGO_IS_IRIX or LIBGO_IS_SOLARIS. > * Makefile.in: Regenerate. > * go/net/cgo_bsd.go: Don't refer to C.int. Thanks. Committed. Ian
diff --git a/libgo/Makefile.am b/libgo/Makefile.am --- a/libgo/Makefile.am +++ b/libgo/Makefile.am @@ -669,9 +669,19 @@ if LIBGO_IS_LINUX go_net_cgo_file = go/net/cgo_linux.go go_net_sock_file = go/net/sock_linux.go else +if LIBGO_IS_IRIX +go_net_cgo_file = go/net/cgo_linux.go +go_net_sock_file = go/net/sock_linux.go +else +if LIBGO_IS_SOLARIS +go_net_cgo_file = go/net/cgo_linux.go +go_net_sock_file = go/net/sock_linux.go +else go_net_cgo_file = go/net/cgo_bsd.go go_net_sock_file = go/net/sock_bsd.go endif +endif +endif go_net_files = \ go/net/cgo_unix.go \ diff --git a/libgo/go/net/cgo_bsd.go b/libgo/go/net/cgo_bsd.go --- a/libgo/go/net/cgo_bsd.go +++ b/libgo/go/net/cgo_bsd.go @@ -10,6 +10,6 @@ package net import "syscall" -func cgoAddrInfoMask() C.int { +func cgoAddrInfoMask() int { return syscall.AI_MASK }