summaryrefslogtreecommitdiff
path: root/contrib/statfs
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/statfs')
-rw-r--r--contrib/statfs/statfs.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/statfs/statfs.go b/contrib/statfs/statfs.go
index 5dcbd07..163d95a 100644
--- a/contrib/statfs/statfs.go
+++ b/contrib/statfs/statfs.go
@@ -5,7 +5,8 @@ import (
"flag"
"fmt"
"os"
- "syscall"
+
+ "golang.org/x/sys/unix"
)
const (
@@ -23,8 +24,8 @@ func main() {
flag.Usage()
}
path := flag.Arg(0)
- var st syscall.Statfs_t
- err := syscall.Statfs(path, &st)
+ var st unix.Statfs_t
+ err := unix.Statfs(path, &st)
if err != nil {
fmt.Fprintf(os.Stderr, "statfs syscall returned error: %v\n", err)
os.Exit(2)