diff options
author | Wen Heping <wen@FreeBSD.org> | 2010-10-29 08:38:33 +0000 |
---|---|---|
committer | Wen Heping <wen@FreeBSD.org> | 2010-10-29 08:38:33 +0000 |
commit | 3f6bc74b9b65db5cdadaef26f1938da1b21c3e38 (patch) | |
tree | 91e0046b9adcb078119ca72aab9f0e5908be8693 /devel/py-jsonlib/files/patch-_jsonlib.c | |
parent | perlbrew is a program to automate the building and (diff) |
- Fix build with python-2.4
PR: ports/151597
Submitted by: "Ilya A. Arhipov" <pa36ouHu4er@yandex.ru>
Notes
Notes:
svn path=/head/; revision=263717
Diffstat (limited to 'devel/py-jsonlib/files/patch-_jsonlib.c')
-rw-r--r-- | devel/py-jsonlib/files/patch-_jsonlib.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/py-jsonlib/files/patch-_jsonlib.c b/devel/py-jsonlib/files/patch-_jsonlib.c new file mode 100644 index 000000000000..7a97de1d841f --- /dev/null +++ b/devel/py-jsonlib/files/patch-_jsonlib.c @@ -0,0 +1,14 @@ +--- _jsonlib.c.orig 2010-10-20 11:09:48.792940743 +0000 ++++ _jsonlib.c 2010-10-20 11:11:06.166556561 +0000 +@@ -21,6 +21,12 @@ + #include <ctype.h> + #include <math.h> ++#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) ++typedef int Py_ssize_t; ++#define PY_SSIZE_T_MAX INT_MAX ++#define PY_SSIZE_T_MIN INT_MIN ++#endif ++ + /* Parser {{{ */ + typedef struct _Parser + { |