diff options
| author | ruki <[email protected]> | 2025-12-03 00:27:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-03 00:27:26 +0800 |
| commit | c1459f60d084d8be5d967a4353087fce0384019a (patch) | |
| tree | 2c685de53991c6336e56cc2c9aa75c471a1e3b57 /core/xmake.lua | |
| parent | bc7caf95a9cfdefed930937e8450997a4cdc8191 (diff) | |
fix solaris build
Diffstat (limited to 'core/xmake.lua')
| -rw-r--r-- | core/xmake.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/xmake.lua b/core/xmake.lua index e819f572b..216eae3eb 100644 --- a/core/xmake.lua +++ b/core/xmake.lua @@ -24,6 +24,11 @@ add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing", "-Wno- -- add definitions add_defines("_GNU_SOURCE=1", "_FILE_OFFSET_BITS=64", "_LARGEFILE_SOURCE") +-- ensure POSIX/XOPEN features are available on Solaris (for setenv, unsetenv, clock_gettime, etc.) +if is_plat("solaris") then + add_defines("_POSIX_C_SOURCE=200112L", "_XOPEN_SOURCE=600") +end + -- add vectorexts --[[ if is_arch("x86", "x64", "i386", "x86_64") then |
