diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-23 22:12:23 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-23 22:12:23 +0100 |
commit | 5c75b65ca15f7c71babd835a45b252fed6534acf (patch) | |
tree | 6b8baa3f5d27c4eafd89fece7deedae30a6ff1fd /source4/param/pyparam.c | |
parent | 86cee0b28c50dd849fe919bbe3faa4deba5275bf (diff) | |
parent | ff26cb4b1c1d0292231e1cfc0490f4be6040d3e3 (diff) | |
download | samba-5c75b65ca15f7c71babd835a45b252fed6534acf.tar.gz samba-5c75b65ca15f7c71babd835a45b252fed6534acf.tar.xz samba-5c75b65ca15f7c71babd835a45b252fed6534acf.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source4/param/pyparam.c')
-rw-r--r-- | source4/param/pyparam.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c index acadcc08b0..69c2613a09 100644 --- a/source4/param/pyparam.c +++ b/source4/param/pyparam.c @@ -25,6 +25,12 @@ #include "param/loadparm.h" #include "pytalloc.h" +/* There's no Py_ssize_t in 2.4, apparently */ +#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5 +typedef int Py_ssize_t; +typedef inquiry lenfunc; +#endif + #define PyLoadparmContext_AsLoadparmContext(obj) py_talloc_get_ptr(obj) PyAPI_DATA(PyTypeObject) PyLoadparmContext; |