diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-06-07 17:30:50 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-06-07 17:30:50 +0800 |
commit | 9805288cdd852f6de70b27451a2df320d071af28 (patch) | |
tree | b0a688e4b979f8aebbfbd534371f0897cd320cfd /vendor/github.com/karalabe/usb | |
parent | 19fa9064d713369796da01ed3299a9b8f5a58401 (diff) | |
download | go-tangerine-9805288cdd852f6de70b27451a2df320d071af28.tar go-tangerine-9805288cdd852f6de70b27451a2df320d071af28.tar.gz go-tangerine-9805288cdd852f6de70b27451a2df320d071af28.tar.bz2 go-tangerine-9805288cdd852f6de70b27451a2df320d071af28.tar.lz go-tangerine-9805288cdd852f6de70b27451a2df320d071af28.tar.xz go-tangerine-9805288cdd852f6de70b27451a2df320d071af28.tar.zst go-tangerine-9805288cdd852f6de70b27451a2df320d071af28.zip |
vendor: pull in USB fix for docker (alpine/musl)
Diffstat (limited to 'vendor/github.com/karalabe/usb')
-rw-r--r-- | vendor/github.com/karalabe/usb/Dockerfile.alpine | 6 | ||||
-rw-r--r-- | vendor/github.com/karalabe/usb/Dockerfile.ubuntu | 4 | ||||
-rw-r--r-- | vendor/github.com/karalabe/usb/libs.go | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/vendor/github.com/karalabe/usb/Dockerfile.alpine b/vendor/github.com/karalabe/usb/Dockerfile.alpine new file mode 100644 index 000000000..342bdf79a --- /dev/null +++ b/vendor/github.com/karalabe/usb/Dockerfile.alpine @@ -0,0 +1,6 @@ +FROM golang:alpine + +RUN apk add --no-cache git gcc musl-dev linux-headers + +ADD . $GOPATH/src/github.com/karalabe/usb +RUN cd $GOPATH/src/github.com/karalabe/usb && go install diff --git a/vendor/github.com/karalabe/usb/Dockerfile.ubuntu b/vendor/github.com/karalabe/usb/Dockerfile.ubuntu new file mode 100644 index 000000000..b861e497b --- /dev/null +++ b/vendor/github.com/karalabe/usb/Dockerfile.ubuntu @@ -0,0 +1,4 @@ +FROM golang:latest + +ADD . $GOPATH/src/github.com/karalabe/usb +RUN cd $GOPATH/src/github.com/karalabe/usb && go install diff --git a/vendor/github.com/karalabe/usb/libs.go b/vendor/github.com/karalabe/usb/libs.go index 94720fbd4..6446acee9 100644 --- a/vendor/github.com/karalabe/usb/libs.go +++ b/vendor/github.com/karalabe/usb/libs.go @@ -23,7 +23,7 @@ package usb #cgo CFLAGS: -DDEFAULT_VISIBILITY="" #cgo CFLAGS: -DPOLL_NFDS_TYPE=int -#cgo linux CFLAGS: -DOS_LINUX -D_GNU_SOURCE +#cgo linux CFLAGS: -DOS_LINUX -D_GNU_SOURCE -DHAVE_SYS_TIME_H #cgo linux,!android LDFLAGS: -lrt #cgo darwin CFLAGS: -DOS_DARWIN -DHAVE_SYS_TIME_H #cgo darwin LDFLAGS: -framework CoreFoundation -framework IOKit -lobjc |