]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix build with Lua 5.5 68833/head
authorKefu Chai <k.chai@proxmox.com>
Sat, 9 May 2026 03:50:10 +0000 (11:50 +0800)
committerKefu Chai <k.chai@proxmox.com>
Sat, 9 May 2026 05:14:25 +0000 (13:14 +0800)
commitbbd0a68b8f86ac6514a7b644892464c394c560bf
tree98220deb68cfdc1dab19f20c8ab4c7bcd31a352e
parent3295cda6e7d65d65db4bdec012c2b52f9a2daaf1
rgw: fix build with Lua 5.5

Lua 5.5 added a `seed` parameter to `lua_newstate()`. Use a
preprocessor conditional to pass the extra argument when building
against Lua >= 5.5.

Since we require Lua >= 5.3 in src/CMakeLists.txt, we need to be
compatible with Lua 5.5 as well.

See https://www.lua.org/manual/5.5/manual.html#lua_newstate

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/rgw/rgw_lua_utils.cc