[SCM] Samba Shared Repository - branch master updated

Matthias Dieter Wallnöfer mdw at samba.org
Sat Nov 19 06:54:02 MST 2011


The branch, master has been updated
       via  dbd930c socket_wrapper/py_socket_wrapper.c - include Python 2.4 compatiblity code
      from  82b1702 Remove rawmemchr calls - found by Ira Cooper. These are glibc-specific calls, makes us completely non-portable.

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


- Log -----------------------------------------------------------------
commit dbd930cb243d33c84fce8dfff84fde02d9e792f5
Author: Matthias Dieter Wallnöfer <mdw at samba.org>
Date:   Sat Nov 19 12:59:01 2011 +0100

    socket_wrapper/py_socket_wrapper.c - include Python 2.4 compatiblity code
    
    Autobuild-User: Matthias Dieter Wallnöfer <mdw at samba.org>
    Autobuild-Date: Sat Nov 19 14:53:43 CET 2011 on sn-devel-104

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

Summary of changes:
 lib/socket_wrapper/py_socket_wrapper.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/socket_wrapper/py_socket_wrapper.c b/lib/socket_wrapper/py_socket_wrapper.c
index 405a43a..5c8af03 100644
--- a/lib/socket_wrapper/py_socket_wrapper.c
+++ b/lib/socket_wrapper/py_socket_wrapper.c
@@ -45,6 +45,13 @@
 #include "system/network.h"
 #include "socket_wrapper.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;
+typedef inquiry lenfunc;
+typedef intargfunc ssizeargfunc;
+#endif
+
 #ifndef Py_RETURN_NONE
 #define Py_RETURN_NONE	return Py_INCREF(Py_None), Py_None
 #endif


-- 
Samba Shared Repository


More information about the samba-cvs mailing list