sysinfo: add Flags to Statfs_t if not already there

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 5 March 2019 20:49 EST

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

07b089176a7 sysinfo: add Flags to Statfs_t if not already there
gcc/go/gofrontend/MERGE | 2 +-
libgo/mksysinfo.sh | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)

Upstream: gcc.gnu.org


  • Share