aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2019-09-27 02:43:37 +0800
committerSteve Wills <swills@FreeBSD.org>2019-09-27 02:43:37 +0800
commit5bc77ee8c26b8a9d4dfeb2026b331aec58089e9a (patch)
treeb16dc51b079e8cf3f55bc587b2eec1655b159621 /graphics
parent37421c08c34bb98753873ccf7a6590d8f819458a (diff)
downloadfreebsd-ports-gnome-5bc77ee8c26b8a9d4dfeb2026b331aec58089e9a.tar.gz
freebsd-ports-gnome-5bc77ee8c26b8a9d4dfeb2026b331aec58089e9a.tar.zst
freebsd-ports-gnome-5bc77ee8c26b8a9d4dfeb2026b331aec58089e9a.zip
graphics/py-python-poppler-qt5: Fix build on i386
PR: 240817 Submitted by: m.ne@gmx.net (maintainer)
Diffstat (limited to 'graphics')
-rw-r--r--graphics/py-python-poppler-qt5/files/patch-types.sip18
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/py-python-poppler-qt5/files/patch-types.sip b/graphics/py-python-poppler-qt5/files/patch-types.sip
new file mode 100644
index 000000000000..a4bd31d38ad0
--- /dev/null
+++ b/graphics/py-python-poppler-qt5/files/patch-types.sip
@@ -0,0 +1,18 @@
+--- types.sip.orig 2019-09-18 15:22:50 UTC
++++ types.sip
+@@ -266,13 +266,13 @@ template <TYPE>
+
+ if (sipPy == Py_None)
+ {
+- *sipCppPtr = new long();
++ *sipCppPtr = new time_t();
+ return 1;
+ }
+
+ if (PyLong_Check(sipPy))
+ {
+- *sipCppPtr = new long(PyLong_AsLong(sipPy));
++ *sipCppPtr = new time_t(PyLong_AsLong(sipPy));
+ return 1;
+ }
+ return 0;