Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

OpenBSD Build fixes

cbugg: close bug-653
  • Loading branch information...
commit 5a497a378edbdfc0ec84ae57e48dba5611e64e41 1 parent d9fbd84
@BenLubar BenLubar authored dustin committed
Showing with 15 additions and 2 deletions.
  1. +13 −0 freespace_openbsd.go
  2. +1 −1  freespace_unix.go
  3. +1 −1  freespace_windows.go
View
13 freespace_openbsd.go
@@ -0,0 +1,13 @@
+// +build openbsd
+
+package main
+
+import (
+ "syscall"
+)
+
+func filesystemFree() (int64, error) {
+ fs := syscall.Statfs_t{}
+ err := syscall.Statfs(*root, &fs)
+ return int64(fs.F_bfree) * int64(fs.F_bsize), err
+}
View
2  freespace_unix.go
@@ -1,4 +1,4 @@
-// +build !windows
+// +build !windows,!openbsd
package main
View
2  freespace_windows.go
@@ -1,4 +1,4 @@
-// +build windows !darwin !freebsd !linux !openbsd !netbsd
+// +build windows
package main
Please sign in to comment.
Something went wrong with that request. Please try again.