]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lua: Define LUA_OK if missing
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 16 Feb 2021 10:47:17 +0000 (12:47 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 22 Mar 2021 10:38:20 +0000 (10:38 +0000)
It's defined since lua 5.2, and we support lua 5.1.

src/lib-lua/dlua-compat.h

index e41509656610e22de870d73a88ba88197594496d..6204429c85a474b2fc051696602e93170f16d1b6 100644 (file)
@@ -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) \