summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-02-03 23:55:58 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-02-03 23:55:58 +0100
commitbb83ffdc21a05e7b1d47e34400a466aa1ba88793 (patch)
treee8f6935248b36d5476f864dc3adbe580fd81609d /source4/utils
parente00e6a2c96760b4c64a3a0badefdb582caabd31a (diff)
downloadsamba-bb83ffdc21a05e7b1d47e34400a466aa1ba88793.tar.gz
net: Fix python 2.4 compatibility.
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/net/net.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c
index 2d45a4bb540..3709b0acdaf 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;