Permalink
Browse files

Fix luabackend compilation on FreeBSD i386

  • Loading branch information...
1 parent 2a077df commit ed02761609043a94f6f18979eade684d78db5b00 @RvdE RvdE committed with pieterlexis Feb 1, 2014
Showing with 4 additions and 0 deletions.
  1. +2 −0 modules/luabackend/lua_functions.cc
  2. +2 −0 modules/luabackend/luabackend.hh
@@ -238,6 +238,7 @@ bool LUABackend::getValueFromTable(lua_State *lua, uint32_t key, string& value)
return ret;
}
+#if !(defined(__i386__) && defined(__FreeBSD__))
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());
@@ -155,7 +155,9 @@ private:
// FUNCTIONS TO THIS BACKEND
bool getValueFromTable(lua_State *lua, const std::string& key, string& value);
bool getValueFromTable(lua_State *lua, uint32_t key, string& value);
+#if !(defined(__i386__) && defined(__FreeBSD__))
bool getValueFromTable(lua_State *lua, const std::string& key, time_t& value);
+#endif
bool getValueFromTable(lua_State *lua, const std::string& key, uint32_t& value);
bool getValueFromTable(lua_State *lua, const std::string& key, uint16_t& value);
bool getValueFromTable(lua_State *lua, const std::string& key, int& value);

0 comments on commit ed02761

Please sign in to comment.