summaryrefslogtreecommitdiff
path: root/dev-python/reportlab/files/reportlab-2.5-pypy-implicit-PyArg_NoArgs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/reportlab/files/reportlab-2.5-pypy-implicit-PyArg_NoArgs.patch')
-rw-r--r--dev-python/reportlab/files/reportlab-2.5-pypy-implicit-PyArg_NoArgs.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-python/reportlab/files/reportlab-2.5-pypy-implicit-PyArg_NoArgs.patch b/dev-python/reportlab/files/reportlab-2.5-pypy-implicit-PyArg_NoArgs.patch
new file mode 100644
index 00000000000..e3d82759580
--- /dev/null
+++ b/dev-python/reportlab/files/reportlab-2.5-pypy-implicit-PyArg_NoArgs.patch
@@ -0,0 +1,13 @@
+PyPy does not provide the PyArg_NoArgs macro.
+--- a/src/rl_addons/rl_accel/sgmlop.c
++++ b/src/rl_addons/rl_accel/sgmlop.c
+@@ -52,6 +52,9 @@
+ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
+
+ #include "Python.h"
++#ifndef PyArg_NoArgs
++#define PyArg_NoArgs(v) PyArg_Parse(v, "")
++#endif
+ #if PY_VERSION_HEX < 0x02050000
+ # define Py_ssize_t int
+ # define lenfunc inquiry