From 931652ad9ef34c99e53007de9f92bfd5a397a219 Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Wed, 8 Jul 2020 20:25:09 +0200 Subject: Make it usable on Lua 5.4 --- tests/testmod.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/testmod.c b/tests/testmod.c index 3bf2cd3..0d73ed4 100644 --- a/tests/testmod.c +++ b/tests/testmod.c @@ -1,5 +1,6 @@ #include #include +#include #include "compat-5.3.h" @@ -285,6 +286,7 @@ static int test_buffer (lua_State *L) { static int test_exec (lua_State *L) { const char *cmd = luaL_checkstring(L, 1); + errno = 0; return luaL_execresult(L, system(cmd)); } -- cgit v1.2.3-55-g6feb