From 2f56d7320009b63ba792ff6557837938e4ad09d1 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Sat, 23 May 2026 16:20:12 +0000 Subject: [PATCH] fix: add DragonFlyBSD target support DragonFly's Rust target triple is `x86_64-unknown-dragonfly` which doesn't end with "bsd", so the existing check missed it. DragonFly is a BSD and uses the same POSIX/Linux-compatible Lua build flags. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d3ccf84..24dc14e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -136,7 +136,7 @@ impl Build { _ if target.contains("linux") => { config.define("LUA_USE_LINUX", None); } - _ if target.ends_with("bsd") => { + _ if target.ends_with("bsd") || target.contains("dragonfly") => { config.define("LUA_USE_LINUX", None); } _ if target.ends_with("illumos") => {