From 047531cb33eaf5eda369c09417ee5d81439d26ed Mon Sep 17 00:00:00 2001 From: Ondra Kupka Date: Fri, 3 Apr 2026 14:12:08 +0200 Subject: [PATCH] Add cflag: -I/opt/homebrew/opt/heimdal/include This is needed on Apple Silicon, where the include path when using Homebrew is different. --- name.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/name.go b/name.go index 751d32e..8811d37 100644 --- a/name.go +++ b/name.go @@ -16,9 +16,10 @@ package gssapi // // Using "MacPorts" on MacOS gives us: -I/opt/local/include // Using "brew" on MacOS gives us: -I/usr/local/opt/heimdal/include +// Using "brew" on MacOS (Apple Silicon) gives us: -I/opt/homebrew/opt/heimdal/include /* -#cgo darwin CFLAGS: -I/opt/local/include -I/usr/local/opt/heimdal/include +#cgo darwin CFLAGS: -I/opt/local/include -I/usr/local/opt/heimdal/include -I/opt/homebrew/opt/heimdal/include #include #include