[SCM] Samba Shared Repository - branch master updated

Jelmer Vernooij jelmer at samba.org
Wed Feb 3 15:58:27 MST 2010


The branch, master has been updated
       via  bb83ffd... net: Fix python 2.4 compatibility.
      from  e00e6a2... s3: Simplify the code a bit: Catch (len==0) early

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit bb83ffdc21a05e7b1d47e34400a466aa1ba88793
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Wed Feb 3 23:55:58 2010 +0100

    net: Fix python 2.4 compatibility.

-----------------------------------------------------------------------

Summary of changes:
 source4/utils/net/net.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c
index 2d45a4b..3709b0a 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;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list