common/fdlimit: build on DragonflyBSD (#21241)

This commit is contained in:
Daniel Liu 2024-07-10 10:02:58 +08:00 committed by Daniel Liu
parent 467126234f
commit 514b4ce7c5

View file

@ -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 <http://www.gnu.org/licenses/>.
//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