summaryrefslogtreecommitdiff
path: root/package/python/patches/patch-Modules__io__iomodule_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-09-26 09:43:33 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-09-26 09:43:33 +0200
commitb90cc7f1ad47a02d811f45b1b6fa0c5fc5bf0edf (patch)
tree74a7f0dcea7f3c1c9e4d4edbfa8f52b2d2f38321 /package/python/patches/patch-Modules__io__iomodule_h
parent418f934071ec5fc3afc1540df2c2ed27b676f306 (diff)
parentbb813d480b00ed42f1e59b760b6433f4ad96bcde (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/python/patches/patch-Modules__io__iomodule_h')
-rw-r--r--package/python/patches/patch-Modules__io__iomodule_h14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/python/patches/patch-Modules__io__iomodule_h b/package/python/patches/patch-Modules__io__iomodule_h
new file mode 100644
index 000000000..64ac4ffaf
--- /dev/null
+++ b/package/python/patches/patch-Modules__io__iomodule_h
@@ -0,0 +1,14 @@
+--- Python-3.1.1.orig/Modules/_io/_iomodule.h 2009-06-12 04:07:12.000000000 +0200
++++ Python-3.1.1/Modules/_io/_iomodule.h 2009-09-16 22:02:30.000000000 +0200
+@@ -99,7 +99,10 @@ typedef off_t Py_off_t;
+ # define PY_OFF_T_MAX LONG_MAX
+ # define PY_OFF_T_MIN LONG_MIN
+ #else
+-# error off_t does not match either size_t, long, or long long!
++# define PyLong_AsOff_t PyLong_AsSsize_t
++# define PyLong_FromOff_t PyLong_FromSsize_t
++# define PY_OFF_T_MAX PY_SSIZE_T_MAX
++# define PY_OFF_T_MIN PY_SSIZE_T_MIN
+ #endif
+
+ #endif