From 38a79e1a6fcbf3ad92e4ba7ee9ffc50b503c432f Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Wed, 10 Jul 2024 10:02:58 +0800 Subject: [PATCH] common/fdlimit: build on DragonflyBSD (#21241) --- common/fdlimit/{fdlimit_freebsd.go => fdlimit_bsd.go} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename common/fdlimit/{fdlimit_freebsd.go => fdlimit_bsd.go} (94%) diff --git a/common/fdlimit/fdlimit_freebsd.go b/common/fdlimit/fdlimit_bsd.go similarity index 94% rename from common/fdlimit/fdlimit_freebsd.go rename to common/fdlimit/fdlimit_bsd.go index 46eda25d26b8..a3a6902c0925 100644 --- a/common/fdlimit/fdlimit_freebsd.go +++ b/common/fdlimit/fdlimit_bsd.go @@ -14,15 +14,15 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . -//go:build freebsd -// +build freebsd +//go:build freebsd || dragonfly +// +build freebsd dragonfly package fdlimit import "syscall" // This file is largely identical to fdlimit_unix.go, -// but Rlimit fields have type int64 on FreeBSD so it needs +// but Rlimit fields have type int64 on *BSD so it needs // an extra conversion. // Raise tries to maximize the file descriptor allowance of this process