diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-02-03 23:55:58 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-02-03 23:55:58 +0100 |
commit | bb83ffdc21a05e7b1d47e34400a466aa1ba88793 (patch) | |
tree | e8f6935248b36d5476f864dc3adbe580fd81609d /source4 | |
parent | e00e6a2c96760b4c64a3a0badefdb582caabd31a (diff) | |
download | samba-bb83ffdc21a05e7b1d47e34400a466aa1ba88793.tar.gz samba-bb83ffdc21a05e7b1d47e34400a466aa1ba88793.tar.bz2 samba-bb83ffdc21a05e7b1d47e34400a466aa1ba88793.zip |
net: Fix python 2.4 compatibility.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/utils/net/net.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c index 2d45a4bb54..3709b0acda 100644 --- a/source4/utils/net/net.c +++ b/source4/utils/net/net.c @@ -52,6 +52,11 @@ #include "auth/credentials/credentials.h" #include "scripting/python/modules.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; +#endif + static PyObject *py_tuple_from_argv(int argc, const char *argv[]) { PyObject *l; |