From 3c283ff8b7dd3a8ea2dbc37d13a35bba7aab00e5 Mon Sep 17 00:00:00 2001 From: Chris Koch Date: Tue, 21 Dec 2021 18:48:10 -0800 Subject: [PATCH] nclient4: support BSDs mdlayher/raw supports them, so why don't we support them, too. Signed-off-by: Chris Koch --- dhcpv4/nclient4/{conn_linux.go => conn_unix.go} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename dhcpv4/nclient4/{conn_linux.go => conn_unix.go} (97%) diff --git a/dhcpv4/nclient4/conn_linux.go b/dhcpv4/nclient4/conn_unix.go similarity index 97% rename from dhcpv4/nclient4/conn_linux.go rename to dhcpv4/nclient4/conn_unix.go index 6cdb0717..bece7523 100644 --- a/dhcpv4/nclient4/conn_linux.go +++ b/dhcpv4/nclient4/conn_unix.go @@ -2,8 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build go1.12 +//go:build go1.12 && (darwin || freebsd || linux || netbsd || openbsd) // +build go1.12 +// +build darwin freebsd linux netbsd openbsd package nclient4