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.

Change-Id: Icfa5ea067d4b296ce1b36a4abb357c106f180bf9
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/165417
Reviewed-by: Than McIntosh <thanm@google.com>
1 file changed