diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-08-09 16:38:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-08-09 16:38:23 +0000 |
commit | bbc824cd56e3c0220c41cad750618ab0734c5ede (patch) | |
tree | 76a9d95816f691326bace64062193e302c7f8000 /libgo | |
parent | 04d6d3b6d77d247616543dedad7ee239368591a5 (diff) | |
download | gcc-bbc824cd56e3c0220c41cad750618ab0734c5ede.zip gcc-bbc824cd56e3c0220c41cad750618ab0734c5ede.tar.gz gcc-bbc824cd56e3c0220c41cad750618ab0734c5ede.tar.bz2 |
mksysinfo.sh: always define CLONE_NEWNET
CLONE_NEWNET is needed to compile the syscall tests on GNU/Linux.
The symbol is not defined in the CentOS 5.11 header files.
Patch from Uros Bizjak.
Reviewed-on: https://go-review.googlesource.com/26630
From-SVN: r239296
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/mksysinfo.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 026bef2..ac5f086 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -1475,6 +1475,9 @@ grep '^const _CLONE_' gen-sysinfo.go | \ if ! grep '^const CLONE_NEWUSER ' ${OUT} > /dev/null 2>&1; then echo "const CLONE_NEWUSER = 0x10000000" >> ${OUT} fi +if ! grep '^const CLONE_NEWNET ' ${OUT} > /dev/null 2>&1; then + echo "const CLONE_NEWNET = 0x40000000" >> ${OUT} +fi # Struct sizes. set cmsghdr Cmsghdr ip_mreq IPMreq ip_mreqn IPMreqn ipv6_mreq IPv6Mreq \ |