The branch, master has been updated
via 7b9ead1 s4:auth/pyauth.c - temporarily add compatibility code for
Python 2.4
from 4d66e0e librpc/rpc: add dcerpc_fault_to_nt_status() mapping from
DCERPC_FAULT_SEC_PKG_ERROR
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 7b9ead17f1b6a3698bb5d5eb4a9448f26428dad1
Author: Matthias Dieter Wallnöfer <[email protected]>
Date: Sun Jan 30 17:55:41 2011 +0100
s4:auth/pyauth.c - temporarily add compatibility code for Python 2.4
This patch has been commited by request of Jelmer.
Autobuild-User: Matthias Dieter Wallnöfer <[email protected]>
Autobuild-Date: Sun Jan 30 19:07:57 CET 2011 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
source4/auth/pyauth.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source4/auth/pyauth.c b/source4/auth/pyauth.c
index 26de2c3..2b310bf 100644
--- a/source4/auth/pyauth.c
+++ b/source4/auth/pyauth.c
@@ -33,6 +33,17 @@
staticforward PyTypeObject PyAuthContext;
+/* There's no Py_ssize_t in 2.4, apparently */
+#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
+typedef int Py_ssize_t;
+typedef inquiry lenfunc;
+typedef intargfunc ssizeargfunc;
+#endif
+
+#ifndef Py_RETURN_NONE
+#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
+#endif
+
static PyObject *py_auth_session_get_security_token(PyObject *self, void
*closure)
{
struct auth_session_info *session = py_talloc_get_type(self, struct
auth_session_info);
--
Samba Shared Repository