mirror of https://github.com/pkg/sftp.git
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:
parent
8197a2e580
commit
4d0e916071
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue