diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-11-03 15:07:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-11-03 15:07:47 +0000 |
commit | 7372dfe4bb0ac7c2d5a5c980e0084437f14cef8b (patch) | |
tree | 5c3df45845766d9a54859597c9b9d3fcd67f98ac /libgo | |
parent | 32fec2c8a21d3e0c6b13113a8d7d6d59c2fb9f42 (diff) | |
download | gcc-7372dfe4bb0ac7c2d5a5c980e0084437f14cef8b.tar.gz |
mksysinfo.sh: Make sure that CLONE_NEWUSER is defined.
Reviewed-on: https://go-review.googlesource.com/16588
From-SVN: r229711
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/mksysinfo.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 3bb7eabdcc8..6d39df96e95 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -1444,6 +1444,11 @@ grep '^type _inotify_event ' gen-sysinfo.go | \ # The GNU/Linux CLONE flags. grep '^const _CLONE_' gen-sysinfo.go | \ sed -e 's/^\(const \)_\(CLONE_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} +# We need some CLONE constants that are not defined in older versions +# of glibc. +if ! grep '^const CLONE_NEWUSER ' ${OUT} > /dev/null 2>&1; then + echo "const CLONE_NEWUSER = 0x10000000" >> ${OUT} +fi # Struct sizes. set cmsghdr Cmsghdr ip_mreq IPMreq ip_mreqn IPMreqn ipv6_mreq IPv6Mreq \ |