System headers not found when compiling for BSD from Linux

Not supported, yet.
Tier-1 support means “libc is available for this target even when cross compiling.”
The current list tier-1 list: 0.11.0 Release Notes ⚡ The Zig Programming Language
FreeBSD issue: add FreeBSD libc as a cross compilation target · Issue #2876 · ziglang/zig · GitHub
OpenBSD issue: add OpenBSD libc as a cross compilation target · Issue #2878 · ziglang/zig · GitHub

1 Like