From 8d036169fe5d6cb1e2ebe1e91622c95956aa6d28 Mon Sep 17 00:00:00 2001 From: Albert Lee Date: Tue, 24 Feb 2026 06:36:11 +0000 Subject: [PATCH] Add support for building on illumos and Solaris --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ecb0da5..dc9cc9f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -139,6 +139,12 @@ impl Build { _ if target.ends_with("bsd") => { config.define("LUA_USE_LINUX", None); } + _ if target.ends_with("illumos") => { + config.define("LUA_USE_POSIX", None); + } + _ if target.ends_with("solaris") => { + config.define("LUA_USE_POSIX", None); + } _ if target.contains("apple-darwin") => { match version { Lua51 => config.define("LUA_USE_LINUX", None),