From 22d54c6e2513ee7707cb015fa8147753ad0d28b9 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 16 Feb 2021 12:47:17 +0200 Subject: [PATCH] lib-lua: Define LUA_OK if missing It's defined since lua 5.2, and we support lua 5.1. --- src/lib-lua/dlua-compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib-lua/dlua-compat.h b/src/lib-lua/dlua-compat.h index e415096566..6204429c85 100644 --- a/src/lib-lua/dlua-compat.h +++ b/src/lib-lua/dlua-compat.h @@ -5,6 +5,10 @@ * In general, make whatever Lua version we have behave more like Lua 5.3. */ +#if !defined(LUA_OK) +# define LUA_OK 0 +#endif + /* functionality missing from <= 5.2 */ #if LUA_VERSION_NUM <= 502 # define luaL_newmetatable(L, tn) \ -- 2.47.3