From bb83ffdc21a05e7b1d47e34400a466aa1ba88793 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 3 Feb 2010 23:55:58 +0100 Subject: [PATCH] net: Fix python 2.4 compatibility. --- source4/utils/net/net.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.34.1