diff options
Diffstat (limited to 'interfaces/bindtodevice_bsd.go')
-rw-r--r-- | interfaces/bindtodevice_bsd.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/interfaces/bindtodevice_bsd.go b/interfaces/bindtodevice_bsd.go index 50e21c6..226e2a8 100644 --- a/interfaces/bindtodevice_bsd.go +++ b/interfaces/bindtodevice_bsd.go @@ -1,10 +1,11 @@ -// +build aix freebsd openbsd netbsd darwin +// +build aix freebsd openbsd netbsd package interfaces import ( "net" - "syscall" + + "golang.org/x/sys/unix" ) // BindToInterface emulates linux's SO_BINDTODEVICE option for a socket by using |