diff options
-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; |