diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-08-19 19:27:32 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-08-19 21:03:44 +0200 |
commit | c21c25450819c9bf2d88c52e6ba44df2c28a01a4 (patch) | |
tree | fa6ad17123e3361607d5cd8bde490042d9cc18f1 | |
parent | aefde815ac44319c734f9459da2d36025c18fc56 (diff) | |
download | samba-c21c25450819c9bf2d88c52e6ba44df2c28a01a4.tar.gz samba-c21c25450819c9bf2d88c52e6ba44df2c28a01a4.tar.bz2 samba-c21c25450819c9bf2d88c52e6ba44df2c28a01a4.zip |
s3:passdb/py_passdb.c - restore Python >= 2.4 compatibility
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Aug 19 21:03:44 CEST 2011 on sn-devel-104
-rw-r--r-- | source3/passdb/py_passdb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c index 9192ab3ce7..e23f47578e 100644 --- a/source3/passdb/py_passdb.c +++ b/source3/passdb/py_passdb.c @@ -25,6 +25,13 @@ #include "passdb.h" #include "secrets.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; +typedef intargfunc ssizeargfunc; +#endif + #ifndef Py_RETURN_NONE #define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None #endif |