mksysinfo.sh: Make sure that CLONE_NEWUSER is defined.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 3 Nov 2015 15:07:47 +0000 (15:07 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 3 Nov 2015 15:07:47 +0000 (15:07 +0000)
    Reviewed-on: https://go-review.googlesource.com/16588

From-SVN: r229711

gcc/go/gofrontend/MERGE
libgo/mksysinfo.sh

index b8276eee350b8c9d3275ade50018f2b173e43c7b..23b53bead866bcc4ce649e5345d6a9f8d4e72abe 100644 (file)
@@ -1,4 +1,4 @@
-28fbc7f42702ce081ef5f3ce9a1dbc1ed3f3c89e
+10e0f935ac369f8403c198b05c909e42e565c1e5
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 3bb7eabdcc8e0742cb3b2b755e120a94f68da789..6d39df96e95fdfb06fc2a84bf6dca8b528a625bf 100755 (executable)
@@ -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 \