Make socket address parsing work on FreeBSD.

On FreeBSD, it is perfectly reasonable to make use of util_linux.go.
Rename util_linux.go to util_unix.go so that it may be used on non-Linux
UNIX-like systems. Add proper 'freebsd' build tags.
This commit is contained in:
Ed Schouten 2017-08-06 15:32:02 +02:00
parent ae4fac416d
commit d2851da325
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ go_library(
srcs = [
"doc.go",
"util.go",
"util_linux.go",
"util_unix.go",
],
tags = ["automanaged"],
deps = [

View File

@ -1,4 +1,4 @@
// +build linux
// +build freebsd linux
/*
Copyright 2017 The Kubernetes Authors.

View File

@ -1,4 +1,4 @@
// +build !linux,!windows
// +build !freebsd,!linux,!windows
/*
Copyright 2017 The Kubernetes Authors.