Changeset 1911
- Timestamp:
- 23/11/08 14:36:10 (7 weeks ago)
- svm:headrev:
cc3e1ea1-1e01-0410-8d68-8b121e83a9d5:11193- Files:
-
- 1 modified
-
freevo/runtime/patches/pyusb-0.4.1-name.patch (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
freevo/runtime/patches/pyusb-0.4.1-name.patch
r1808 r1911 1 1 diff -Naur pyusb-0.4.1.orig/pyusb.c pyusb-0.4.1/pyusb.c 2 2 --- 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 @@ 5 16 */ 6 17 PYUSB_STATIC char *getBuffer( … … 11 22 { 12 23 char *p = NULL; 13 @@ -342,7 +34 2,7 @@24 @@ -342,7 +346,7 @@ 14 25 PYUSB_STATIC PyTypeObject Py_usb_Endpoint_Type = { 15 26 PyObject_HEAD_INIT(NULL) … … 20 31 0, /*tp_itemsize*/ 21 32 0, /*tp_dealloc*/ 22 @@ -475,7 +47 5,7 @@33 @@ -475,7 +479,7 @@ 23 34 PYUSB_STATIC PyTypeObject Py_usb_Interface_Type = { 24 35 PyObject_HEAD_INIT(NULL) … … 29 40 0, /*tp_itemsize*/ 30 41 Py_usb_Interface_del, /*tp_dealloc*/ 31 @@ -634,7 +63 4,7 @@42 @@ -634,7 +638,7 @@ 32 43 PYUSB_STATIC PyTypeObject Py_usb_Configuration_Type = { 33 44 PyObject_HEAD_INIT(NULL) … … 38 49 0, /*tp_itemsize*/ 39 50 Py_usb_Configuration_del, /*tp_dealloc*/ 40 @@ -853,7 +85 3,7 @@51 @@ -853,7 +857,7 @@ 41 52 PYUSB_STATIC PyTypeObject Py_usb_Device_Type = { 42 53 PyObject_HEAD_INIT(NULL) … … 47 58 0, /*tp_itemsize*/ 48 59 Py_usb_Device_del, /*tp_dealloc*/ 49 @@ -1004,7 +100 4,7 @@60 @@ -1004,7 +1008,7 @@ 50 61 PYUSB_STATIC PyTypeObject Py_usb_Bus_Type = { 51 62 PyObject_HEAD_INIT(NULL) … … 56 67 0, /*tp_itemsize*/ 57 68 Py_usb_Bus_del, /*tp_dealloc*/ 58 @@ -1104,7 +110 4,7 @@69 @@ -1104,7 +1108,7 @@ 59 70 int index = 0; 60 71 char *bytes; … … 65 76 int ret; 66 77 int as_read = 0; 67 @@ -1386,7 +13 86,7 @@78 @@ -1386,7 +1390,7 @@ 68 79 int endpoint; 69 80 int timeout = DEFAULT_TIMEOUT; … … 74 85 int ret; 75 86 PyObject *retObj; 76 @@ -1493,7 +149 3,7 @@87 @@ -1493,7 +1497,7 @@ 77 88 int endpoint; 78 89 int timeout = DEFAULT_TIMEOUT; … … 83 94 int ret; 84 95 PyObject *retObj; 85 @@ -1974,7 +197 4,7 @@96 @@ -1974,7 +1978,7 @@ 86 97 PYUSB_STATIC PyTypeObject Py_usb_DeviceHandle_Type = { 87 98 PyObject_HEAD_INIT(NULL) … … 92 103 0, /*tp_itemsize*/ 93 104 Py_usb_DeviceHandle_del, /*tp_dealloc*/ 94 @@ -2103,14 +210 3,14 @@105 @@ -2103,14 +2107,14 @@ 95 106 /* 96 107 * Entry point for the module … … 112 123 diff -Naur pyusb-0.4.1.orig/setup.py pyusb-0.4.1/setup.py 113 124 --- 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 +0200125 +++ pyusb-0.4.1/setup.py 2008-11-23 14:08:03.000000000 +0100 115 126 @@ -39,7 +39,7 @@ 116 127 extra_compile_args = ['-I/usr/local/include']
