mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
fix linux build for whole package compilation
R=rsc OCL=33103 CL=33103
This commit is contained in:
parent
a5bf45e389
commit
96a2a2effd
2 changed files with 7 additions and 10 deletions
|
|
@ -78,8 +78,13 @@ if $havex; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# They all compile; now generate the code to call them.
|
# They all compile; now generate the code to call them.
|
||||||
#trap "rm -f _testmain.go _testmain.$O" 0 1 2 3 14 15
|
trap "rm -f _testmain.go _testmain.$O" 0 1 2 3 14 15
|
||||||
importpath=$(make importpath)
|
|
||||||
|
# Suppress output to stdout on Linux
|
||||||
|
MAKEFLAGS=
|
||||||
|
MAKELEVEL=
|
||||||
|
|
||||||
|
importpath=$(make -s importpath)
|
||||||
{
|
{
|
||||||
# package spec
|
# package spec
|
||||||
echo 'package main'
|
echo 'package main'
|
||||||
|
|
|
||||||
|
|
@ -184,14 +184,6 @@ func Sleep(nsec int64) (errno int) {
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Implemented in syscall_linux_*.go
|
|
||||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, errno int)
|
|
||||||
func bind(s int, addr uintptr, addrlen _Socklen) (errno int)
|
|
||||||
func connect(s int, addr uintptr, addrlen _Socklen) (errno int)
|
|
||||||
func socket(domain int, typ int, proto int) (fd int, errno int)
|
|
||||||
func setsockopt(s int, level int, name int, val uintptr, vallen int) (errno int)
|
|
||||||
func Listen(s int, n int) (errno int)
|
|
||||||
|
|
||||||
// For testing: clients can set this flag to force
|
// For testing: clients can set this flag to force
|
||||||
// creation of IPv6 sockets to return EAFNOSUPPORT.
|
// creation of IPv6 sockets to return EAFNOSUPPORT.
|
||||||
var SocketDisableIPv6 bool
|
var SocketDisableIPv6 bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue