File: 01_restore_pristine_code.dpatch

package info (click to toggle)
python-kinterbasdb 3.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,432 kB
  • ctags: 1,830
  • sloc: ansic: 16,803; python: 3,514; makefile: 63; sh: 22
file content (36 lines) | stat: -rw-r--r-- 1,412 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_restore_pristine_code.dpatch by Sandro Tosi <matrixhasu@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from python-kinterbasdb 3.1.2-1 diff.gz

@DPATCH@
diff -urNad python-kinterbasdb-3.2~/_kievents.h python-kinterbasdb-3.2/_kievents.h
--- python-kinterbasdb-3.2~/_kievents.h	2008-02-10 18:22:53.000000000 +0100
+++ python-kinterbasdb-3.2/_kievents.h	2008-02-10 18:28:59.808111244 +0100
@@ -30,11 +30,7 @@
 #include "_kisupport.h"
 #include "_kisupport_threadsafe_fifo_queue.h"
 
-#ifdef FIREBIRD_2_0_OR_LATER
-  #define EVENT_CALLBACK_FUNCTION ISC_EVENT_CALLBACK
-#else
-  #define EVENT_CALLBACK_FUNCTION isc_callback
-#endif
+#define EVENT_CALLBACK_FUNCTION isc_callback
 
 #define DV_VOID(void_ptr) DEVOLATILE(void *, void_ptr)
 #define DV_STR(char_ptr) DEVOLATILE(char *, char_ptr)
diff -urNad python-kinterbasdb-3.2~/_kinterbasdb.c python-kinterbasdb-3.2/_kinterbasdb.c
--- python-kinterbasdb-3.2~/_kinterbasdb.c	2008-02-10 18:22:53.000000000 +0100
+++ python-kinterbasdb-3.2/_kinterbasdb.c	2008-02-10 18:22:56.747421593 +0100
@@ -77,6 +77,9 @@
 static PyObject *ProgrammingError          = NULL;
 static PyObject *NotSupportedError         = NULL;
 
+#ifndef LONG_LONG
+# define LONG_LONG PY_LONG_LONG
+#endif
 
 /* 2005.11.04: */
 static int global_concurrency_level = UNKNOWN_CONCURRENCY_LEVEL;