commit 2db2c6b33655bf2605109da446075ea54604be64
parent e408690332e79215dc3f8ff1eec7102a602b9569
Author: Chris Bracken <chris@bracken.jp>
Date: Fri, 6 Mar 2026 16:29:35 +0900
build: set _BSD_SOURCE on OpenBSD
This is required for pledge/unveil.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/build/BUILD.gn b/build/BUILD.gn
@@ -15,6 +15,8 @@ config("posix_env") {
defines += [ "_DEFAULT_SOURCE" ]
} else if (target_os == "mac") {
defines += [ "_DARWIN_C_SOURCE" ]
+ } else if (target_os == "openbsd") {
+ defines += [ "_BSD_SOURCE" ]
}
}