From: RvdE Date: Sat, 1 Feb 2014 12:35:08 +0000 (+0100) Subject: Update lua_functions.cc X-Git-Tag: dnsdist-1.0.0-alpha1~255^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d2eb2a656a966778f873c659fd30717465c53e5;p=pdns Update lua_functions.cc time_t is int on i386 so only enable the overload for time_t on 64bit --- diff --git a/modules/luabackend/lua_functions.cc b/modules/luabackend/lua_functions.cc index b30c13f4d..a5a4fcd04 100644 --- a/modules/luabackend/lua_functions.cc +++ b/modules/luabackend/lua_functions.cc @@ -238,6 +238,7 @@ bool LUABackend::getValueFromTable(lua_State *lua, uint32_t key, string& value) return ret; } +#ifndef __i386__ bool LUABackend::getValueFromTable(lua_State *lua, const std::string& key, time_t& value) { lua_pushstring(lua, key.c_str()); lua_gettable(lua, -2); @@ -253,6 +254,7 @@ bool LUABackend::getValueFromTable(lua_State *lua, const std::string& key, time_ return ret; } +#endif bool LUABackend::getValueFromTable(lua_State *lua, const std::string& key, uint32_t& value) { lua_pushstring(lua, key.c_str());