From 664bd95d2468811695894982d2463ed916727a22 Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Fri, 19 Jan 2024 21:05:53 +0100 Subject: [PATCH] proc/native: add support sentinel for FreeBSD with cgo disabled (#3636) Adds a support sentinel file for building on FreeBSD with cgo disabled. Makes the build error for FreeBSD easier to understand. Fixes #3630 --- pkg/proc/native/support_sentinel_cgo_freebsd.go | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pkg/proc/native/support_sentinel_cgo_freebsd.go diff --git a/pkg/proc/native/support_sentinel_cgo_freebsd.go b/pkg/proc/native/support_sentinel_cgo_freebsd.go new file mode 100644 index 00000000..0018fcf8 --- /dev/null +++ b/pkg/proc/native/support_sentinel_cgo_freebsd.go @@ -0,0 +1,5 @@ +//go:build freebsd && amd64 && !cgo + +// This file is used to detect building on freebsd with cgo disabled + +package can_not_build_on_freebsd_with_cgo_disabled