Fix build on 386 by adding upstreams fix

WWW: e864f2a037
This commit is contained in:
Palle Girgensohn 2016-12-13 10:25:45 +00:00
parent ef78b032e8
commit c6dd611537
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428474

View File

@ -0,0 +1,22 @@
--- ../src/github.com/elastic/beats/vendor/github.com/shirou/gopsutil/disk/disk_freebsd_386.go.orig 2016-12-13 11:17:18.930219000 +0100
+++ ../src/github.com/elastic/beats/vendor/github.com/shirou/gopsutil/disk/disk_freebsd_386.go 2016-12-13 11:17:23.015481000 +0100
@@ -39,6 +39,10 @@
MNT_SUSPEND = 4
)
+const (
+ sizeOfDevstat = 0xf0
+)
+
type (
_C_short int16
_C_int int32
@@ -95,7 +99,7 @@
Flags uint32
Device_type uint32
Priority uint32
- ID *byte
+ Id *byte
Sequence1 uint32
}
type Bintime struct {