]> git.pld-linux.org Git - packages/Firebird.git/blame - Firebird-morearchs.patch
- updated morearch patch
[packages/Firebird.git] / Firebird-morearchs.patch
CommitLineData
5d54ae96
JB
1--- firebird-1.5.1.4500/src/jrd/common.h.orig 2004-05-28 23:36:22.000000000 +0200
2+++ firebird-1.5.1.4500/src/jrd/common.h 2004-05-28 23:44:49.000000000 +0200
3@@ -131,6 +131,14 @@
67566b4b
JB
4 #define IMPLEMENTATION isc_info_db_impl_linux_sparc /* 65 */
5 #endif /* sparc */
6
7+#ifdef __powerpc__
8+#define IMPLEMENTATION isc_info_db_impl_linux_ppc
9+#endif
10+
11+#ifdef __alpha__
12+#define IMPLEMENTATION isc_info_db_impl_linux_alpha
13+#endif
67566b4b
JB
14+
15 #define MEMMOVE(from,to,length) memmove ((void *)to, (void *)from, (size_t) length)
16 #define MOVE_FAST(from,to,length) memcpy (to, from, (int) (length))
17 #define MOVE_FASTER(from,to,length) memcpy (to, from, (int) (length))
5d54ae96
JB
18--- firebird-1.5.1.4500/src/jrd/ibase.h.orig 2004-03-29 05:50:10.000000000 +0200
19+++ firebird-1.5.1.4500/src/jrd/ibase.h 2004-08-08 00:59:58.069029392 +0200
20@@ -1577,6 +1577,9 @@
67566b4b 21 isc_info_db_impl_linux_sparc = 65,
5d54ae96 22 isc_info_db_impl_linux_amd64 = 66,
67566b4b 23
5d54ae96
JB
24+ isc_info_db_impl_linux_ppc = 67,
25+ isc_info_db_impl_linux_alpha = 68,
67566b4b
JB
26+
27 isc_info_db_impl_last_value /* Leave this LAST! */
28 };
29
5d54ae96
JB
30--- firebird-1.5.1.4500/src/jrd/pag.cpp.orig 2004-05-28 22:16:09.000000000 +0200
31+++ firebird-1.5.1.4500/src/jrd/pag.cpp 2004-05-28 23:58:59.000000000 +0200
32@@ -180,6 +180,12 @@
67566b4b
JB
33 #ifdef __sparc__
34 #define CLASS 20
35 #endif
36+#ifdef __powerpc__
37+#define CLASS 30
38+#endif
39+#ifdef __alpha__
40+#define CLASS 31
67566b4b
JB
41+#endif
42 #endif
43
44 #ifdef FREEBSD
5d54ae96
JB
45--- firebird-1.5.1.4500/src/remote/xdr.cpp.orig 2004-08-08 00:57:44.918271384 +0200
46+++ firebird-1.5.1.4500/src/remote/xdr.cpp 2004-08-08 00:59:21.762548816 +0200
67566b4b
JB
47@@ -39,10 +39,10 @@
48 // The simpliest way to check it is to issue
49 // "select abs(2.0/3.0) from rdb$database" from correct client
50 // It will return big strange value in case of invalid define
5d54ae96
JB
51-#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
52+#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(__alpha__)
67566b4b
JB
53 #define SWAP_DOUBLE
54 #else
d622da60
JB
55-#if !defined(sparc) && !defined(PowerPC)
56+#if !defined(sparc) && !defined(PowerPC) && !defined(__powerpc__)
67566b4b
JB
57 #error "Define SWAP_DOUBLE for your platform correctly !"
58 #endif
59 #endif
41120a8d 60diff -ur firebird-1.5.1.4500.orig/src/jrd/ibase.h firebird-1.5.1.4500/src/jrd/ibase.h
61--- firebird-1.5.1.4500.orig/src/jrd/ibase.h 2004-03-29 05:50:10.000000000 +0200
62+++ firebird-1.5.1.4500/src/jrd/ibase.h 2004-10-03 03:32:57.962674256 +0200
63@@ -57,7 +57,7 @@
64 // It is difficult to detect 64-bit long from the redistributable header
65 // we do not care of 16-bit platforms anymore thus we may use plain "int"
66 // which is 32-bit on all platforms we support
67-#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
68+#if defined(_LP64) || defined(__LP64__) || defined(__arch64__) || defined(__alpha) || defined(__sparcv9)
69 typedef int ISC_LONG;
70 typedef unsigned int ISC_ULONG;
71 #else
This page took 0.047273 seconds and 4 git commands to generate.