- Fix build with go 1.12

This commit is contained in:
Ryan Steinmetz 2019-03-12 17:06:08 +00:00
parent 8f9668e493
commit 1d822b795d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495472
2 changed files with 11 additions and 2 deletions

View File

@ -12,8 +12,6 @@ COMMENT= Collect logs locally and send to remote logstash
LICENSE= APACHE20
BROKEN_i386= fails to build
USE_GITHUB= yes
GH_ACCOUNT= elastic

View File

@ -0,0 +1,11 @@
--- vendor/github.com/docker/docker/pkg/system/mknod.go.orig 2019-03-12 15:33:33 UTC
+++ vendor/github.com/docker/docker/pkg/system/mknod.go
@@ -9,7 +9,7 @@ import (
// Mknod creates a filesystem node (file, device special file or named pipe) named path
// with attributes specified by mode and dev.
func Mknod(path string, mode uint32, dev int) error {
- return syscall.Mknod(path, mode, dev)
+ return syscall.Mknod(path, mode, uint64(dev))
}
// Mkdev is used to build the value of linux devices (in /dev/) which specifies major