Closed adrianosela closed 1 year ago
Cross posting from: https://github.com/prometheus/procfs/pull/529
Hey @SuperQ , would be good to go over the list here https://github.com/golang/go/blob/master/src/go/build/syslist.go and deal with all of the OSes.... there's a list of unix-like OSses there too, so maybe worth just going off of that?
fs: syscall.Statfs_t object doesn't have a Type field on Windows
Fixes build for
GOOS=windows
(https://github.com/prometheus/procfs/issues/527)This PR extends the solution from https://github.com/prometheus/procfs/pull/523 to include windows in the list of OSes for which the
syscall.Statfs_t
object does not have aType
fieldTesting:
Before:
After: