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 | |
parent | 0b50269aebbdaaba3aac2a79469292bfe3149827 (diff) | |
download | ports-3f6bc74b9b65db5cdadaef26f1938da1b21c3e38.tar.gz ports-3f6bc74b9b65db5cdadaef26f1938da1b21c3e38.zip |
Notes
-rw-r--r-- | devel/py-jsonlib/Makefile | 1 | ||||
-rw-r--r-- | devel/py-jsonlib/files/patch-_jsonlib.c | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/devel/py-jsonlib/Makefile b/devel/py-jsonlib/Makefile index 200507486c21..54ec925218c7 100644 --- a/devel/py-jsonlib/Makefile +++ b/devel/py-jsonlib/Makefile @@ -7,6 +7,7 @@ PORTNAME= jsonlib PORTVERSION= 1.6.1 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} 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 + { |