[SCM] Samba Shared Repository - branch master updated

Andrew Bartlett abartlet at samba.org
Sat Aug 13 20:00:02 MDT 2011


The branch, master has been updated
       via  d2d2e7a s3-passdb: Fix python < 2.6 build errors in passdb python wrapper
      from  c84caab s4:misc: remove last usage of legacy event_ fn names

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


- Log -----------------------------------------------------------------
commit d2d2e7ab0228c1a753555f87d1d40743e366a00a
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Sun Aug 14 10:05:42 2011 +1000

    s3-passdb: Fix python < 2.6 build errors in passdb python wrapper
    
    Autobuild-User: Andrew Bartlett <abartlet at samba.org>
    Autobuild-Date: Sun Aug 14 03:59:48 CEST 2011 on sn-devel-104

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

Summary of changes:
 source3/passdb/py_passdb.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c
index 17d4415..30c3f8c 100644
--- a/source3/passdb/py_passdb.c
+++ b/source3/passdb/py_passdb.c
@@ -29,6 +29,10 @@
 #define Py_RETURN_NONE	return Py_INCREF(Py_None), Py_None
 #endif
 
+#ifndef Py_TYPE /* Py_TYPE is only available on Python > 2.6 */
+#define Py_TYPE(ob)             (((PyObject*)(ob))->ob_type)
+#endif
+
 #ifndef PY_CHECK_TYPE
 #define PY_CHECK_TYPE(type, var, fail) \
 	if (!PyObject_TypeCheck(var, type)) {\


-- 
Samba Shared Repository


More information about the samba-cvs mailing list