From: Vladimír Čunát Date: Mon, 4 May 2020 10:17:43 +0000 (+0200) Subject: daemon/bindings: stricter luajit detection X-Git-Tag: v5.1.1~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b495b6273c11574af1ecab949494722cde905a2;p=thirdparty%2Fknot-resolver.git daemon/bindings: stricter luajit detection --- diff --git a/daemon/bindings/impl.h b/daemon/bindings/impl.h index 0297805d7..bb11e1b28 100644 --- a/daemon/bindings/impl.h +++ b/daemon/bindings/impl.h @@ -9,9 +9,8 @@ #include #include /* It may happen that include files are messed up and we're hitting a header - * e.g. from Lua 5.2 or 5.3. Header from 5.1 should work OK, and it's more difficult - * to differentiate from a luajit one. */ -#if LUA_VERSION_NUM != 501 + * e.g. from vanilla Lua. Even 5.1 won't work due to missing luaL_traceback() in . */ +#if (LUA_VERSION_NUM) != 501 || !defined(LUA_LJDIR) #error "Incorrect Lua version in #include - LuaJIT compatible with Lua 5.1 is required" #endif