Remove reference to X__val (#142)

Fixes golang/go#17298

This field is not present in all versions of the syscall package.
This commit is contained in:
Dave Cheney 2016-10-01 08:07:58 +10:00 committed by GitHub
parent 8197a2e580
commit 4d0e916071
1 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@ func statvfsFromStatfst(stat *syscall.Statfs_t) (*StatVFS, error) {
Files: stat.Files,
Ffree: stat.Ffree,
Favail: stat.Ffree, // not sure how to calculate Favail
Fsid: uint64(uint64(stat.Fsid.X__val[1])<<32 | uint64(stat.Fsid.X__val[0])), // endianness?
Flag: uint64(stat.Flags), // assuming POSIX?
Namemax: uint64(stat.Namelen),
}, nil