Changeset 1911

Show
Ignore:
Timestamp:
23/11/08 14:36:10 (7 weeks ago)
Author:
duncan
svm:headrev:

cc3e1ea1-1e01-0410-8d68-8b121e83a9d5:11193
Message:

Updated to define Py_ssize_t when it has not been defined (Python-2.4)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • freevo/runtime/patches/pyusb-0.4.1-name.patch

    r1808 r1911  
    11diff -Naur pyusb-0.4.1.orig/pyusb.c pyusb-0.4.1/pyusb.c 
    22--- pyusb-0.4.1.orig/pyusb.c    2007-09-28 23:46:58.000000000 +0200 
    3 +++ pyusb-0.4.1/pyusb.c 2008-08-23 17:39:34.000000000 +0200 
    4 @@ -126,7 +126,7 @@ 
     3+++ pyusb-0.4.1/pyusb.c 2008-11-23 14:13:10.000000000 +0100 
     4@@ -13,6 +13,10 @@ 
     5 #include <stdio.h> 
     6 #define DEFAULT_TIMEOUT 100 
     7  
     8+#ifndef Py_ssize_t 
     9+typedef int Py_ssize_t; 
     10+#endif 
     11+ 
     12 /* 
     13  * Necessary to compile successfully in python 2.3 
     14  * Thanks to Mark Rages for the patch 
     15@@ -126,7 +130,7 @@ 
    516  */ 
    617 PYUSB_STATIC char *getBuffer( 
     
    1122 { 
    1223        char *p = NULL; 
    13 @@ -342,7 +342,7 @@ 
     24@@ -342,7 +346,7 @@ 
    1425 PYUSB_STATIC PyTypeObject Py_usb_Endpoint_Type = { 
    1526     PyObject_HEAD_INIT(NULL) 
     
    2031     0,                         /*tp_itemsize*/ 
    2132     0,                         /*tp_dealloc*/ 
    22 @@ -475,7 +475,7 @@ 
     33@@ -475,7 +479,7 @@ 
    2334 PYUSB_STATIC PyTypeObject Py_usb_Interface_Type = { 
    2435     PyObject_HEAD_INIT(NULL) 
     
    2940     0,                         /*tp_itemsize*/ 
    3041     Py_usb_Interface_del,     /*tp_dealloc*/ 
    31 @@ -634,7 +634,7 @@ 
     42@@ -634,7 +638,7 @@ 
    3243 PYUSB_STATIC PyTypeObject Py_usb_Configuration_Type = { 
    3344     PyObject_HEAD_INIT(NULL) 
     
    3849     0,                         /*tp_itemsize*/ 
    3950     Py_usb_Configuration_del,  /*tp_dealloc*/ 
    40 @@ -853,7 +853,7 @@ 
     51@@ -853,7 +857,7 @@ 
    4152 PYUSB_STATIC PyTypeObject Py_usb_Device_Type = { 
    4253     PyObject_HEAD_INIT(NULL) 
     
    4758     0,                         /*tp_itemsize*/ 
    4859     Py_usb_Device_del,         /*tp_dealloc*/ 
    49 @@ -1004,7 +1004,7 @@ 
     60@@ -1004,7 +1008,7 @@ 
    5061 PYUSB_STATIC PyTypeObject Py_usb_Bus_Type = { 
    5162     PyObject_HEAD_INIT(NULL) 
     
    5667     0,                         /*tp_itemsize*/ 
    5768     Py_usb_Bus_del,            /*tp_dealloc*/ 
    58 @@ -1104,7 +1104,7 @@ 
     69@@ -1104,7 +1108,7 @@ 
    5970        int index = 0; 
    6071        char *bytes; 
     
    6576        int ret; 
    6677        int as_read = 0; 
    67 @@ -1386,7 +1386,7 @@ 
     78@@ -1386,7 +1390,7 @@ 
    6879        int endpoint; 
    6980        int timeout = DEFAULT_TIMEOUT; 
     
    7485        int ret; 
    7586        PyObject *retObj; 
    76 @@ -1493,7 +1493,7 @@ 
     87@@ -1493,7 +1497,7 @@ 
    7788        int endpoint; 
    7889        int timeout = DEFAULT_TIMEOUT; 
     
    8394        int ret; 
    8495        PyObject *retObj; 
    85 @@ -1974,7 +1974,7 @@ 
     96@@ -1974,7 +1978,7 @@ 
    8697 PYUSB_STATIC PyTypeObject Py_usb_DeviceHandle_Type = { 
    8798     PyObject_HEAD_INIT(NULL) 
     
    92103     0,                         /*tp_itemsize*/ 
    93104     Py_usb_DeviceHandle_del,   /*tp_dealloc*/ 
    94 @@ -2103,14 +2103,14 @@ 
     105@@ -2103,14 +2107,14 @@ 
    95106 /* 
    96107  * Entry point for the module 
     
    112123diff -Naur pyusb-0.4.1.orig/setup.py pyusb-0.4.1/setup.py 
    113124--- pyusb-0.4.1.orig/setup.py   2007-09-29 00:05:00.000000000 +0200 
    114 +++ pyusb-0.4.1/setup.py        2008-08-23 17:36:14.000000000 +0200 
     125+++ pyusb-0.4.1/setup.py        2008-11-23 14:08:03.000000000 +0100 
    115126@@ -39,7 +39,7 @@ 
    116127        extra_compile_args = ['-I/usr/local/include']