sysinfo: add Flags to Statfs_t if not already there
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 5 Mar 2019 20:49:21 +0000 (20:49 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 5 Mar 2019 20:49:21 +0000 (20:49 +0000)
commit9bf54c938ab8ab79a92a5f354686e103d66f1a1a
tree2b08ccbd0c0053a1d141eb2a6fbaabff0883ad84
parent77fa4c4275502fb4a030db1799d82704395a03ab
sysinfo: add Flags to Statfs_t if not already there

    If there is no f_flags field in statfs_t then rename one of the
    f_spare fields, as happened in Linux kernel version 2.6.36.  This
    fixes the build on CentOS 5.11.  The CentOS kernel will hopefully not
    fill in the f_spare field, so the resulting flags will be zero.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/165417

From-SVN: r269401
gcc/go/gofrontend/MERGE
libgo/mksysinfo.sh