Skip to content

Commit e2784d6

Browse files
committed
Support for more BSDs
This adds trivial support for more BSD variants: NetBSD and OpenBSD.
1 parent 1551af1 commit e2784d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ impl Build {
8787
_ if target.contains("freebsd") => {
8888
config.define("LUA_USE_LINUX", None);
8989
}
90+
_ if target.contains("netbsd") => {
91+
config.define("LUA_USE_LINUX", None);
92+
}
93+
_ if target.contains("openbsd") => {
94+
config.define("LUA_USE_LINUX", None);
95+
}
9096
_ if target.contains("apple-darwin") => {
9197
match version {
9298
Lua51 => config.define("LUA_USE_LINUX", None),

0 commit comments

Comments
 (0)