aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns/files
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2014-10-22 11:59:49 +0000
committerKurt Jaeger <pi@FreeBSD.org>2014-10-22 11:59:49 +0000
commitac9fd9da61f1a2da3af8d4252da7e07750c560bb (patch)
tree2c43526bc85d5e90dff6e44725f4936cbfeada1d /dns/powerdns/files
parentdbe75c44bf2036d3b5219636c1f9e4e0ef19ebec (diff)
downloadports-ac9fd9da61f1a2da3af8d4252da7e07750c560bb.tar.gz
ports-ac9fd9da61f1a2da3af8d4252da7e07750c560bb.zip
Notes
Diffstat (limited to 'dns/powerdns/files')
-rw-r--r--dns/powerdns/files/patch-modules__luabackend__lua_functions.cc18
-rw-r--r--dns/powerdns/files/patch-modules__luabackend__luabackend.hh12
2 files changed, 30 insertions, 0 deletions
diff --git a/dns/powerdns/files/patch-modules__luabackend__lua_functions.cc b/dns/powerdns/files/patch-modules__luabackend__lua_functions.cc
new file mode 100644
index 000000000000..fcb87906ee34
--- /dev/null
+++ b/dns/powerdns/files/patch-modules__luabackend__lua_functions.cc
@@ -0,0 +1,18 @@
+--- modules/luabackend/lua_functions.cc.orig 2014-09-23 06:27:34 UTC
++++ modules/luabackend/lua_functions.cc
+@@ -238,6 +238,7 @@
+ 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 @@
+
+ return ret;
+ }
++#endif
+
+ bool LUABackend::getValueFromTable(lua_State *lua, const std::string& key, uint32_t& value) {
+ lua_pushstring(lua, key.c_str());
diff --git a/dns/powerdns/files/patch-modules__luabackend__luabackend.hh b/dns/powerdns/files/patch-modules__luabackend__luabackend.hh
new file mode 100644
index 000000000000..df2fb1d8fd21
--- /dev/null
+++ b/dns/powerdns/files/patch-modules__luabackend__luabackend.hh
@@ -0,0 +1,12 @@
+--- modules/luabackend/luabackend.hh.orig 2014-09-23 06:27:34 UTC
++++ modules/luabackend/luabackend.hh
+@@ -155,7 +155,9 @@
+ // 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);
++#ifndef __i386__
+ 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);