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
4 #define IMPLEMENTATION isc_info_db_impl_linux_sparc /* 65 */
8 +#define IMPLEMENTATION isc_info_db_impl_linux_ppc
12 +#define IMPLEMENTATION isc_info_db_impl_linux_alpha
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))
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
21 // It is difficult to detect 64-bit long from the redistributable header
22 // we do not care of 16-bit platforms anymore thus we may use plain "int"
23 // which is 32-bit on all platforms we support
24 -#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
25 +#if defined(_LP64) || defined(__LP64__) || defined(__arch64__) || defined(__alpha__) || defined(__sparcv9)
27 typedef unsigned int ISC_ULONG;
30 isc_info_db_impl_linux_sparc = 65,
31 isc_info_db_impl_linux_amd64 = 66,
33 + isc_info_db_impl_linux_ppc = 67,
34 + isc_info_db_impl_linux_alpha = 68,
36 isc_info_db_impl_last_value /* Leave this LAST! */
39 --- firebird-1.5.1.4500/src/jrd/pag.cpp.orig 2004-05-28 22:16:09.000000000 +0200
40 +++ firebird-1.5.1.4500/src/jrd/pag.cpp 2004-05-28 23:58:59.000000000 +0200
54 --- firebird-1.5.1.4500/src/remote/xdr.cpp.orig 2004-08-08 00:57:44.918271384 +0200
55 +++ firebird-1.5.1.4500/src/remote/xdr.cpp 2004-08-08 00:59:21.762548816 +0200
57 // The simpliest way to check it is to issue
58 // "select abs(2.0/3.0) from rdb$database" from correct client
59 // It will return big strange value in case of invalid define
60 -#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
61 +#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(__alpha__)
64 -#if !defined(sparc) && !defined(PowerPC)
65 +#if !defined(sparc) && !defined(PowerPC) && !defined(__powerpc__)
66 #error "Define SWAP_DOUBLE for your platform correctly !"
69 --- firebird-1.5.1.4500/src/jrd/utl.cpp.orig 2004-03-29 05:50:11.000000000 +0200
70 +++ firebird-1.5.1.4500/src/jrd/utl.cpp 2004-08-08 14:13:50.000000000 +0200
72 "Firebird/Darwin/PowerPC", /* 63 */
73 "Firebird/SINIX-Z", /* 64 */
74 "Firebird/linux Sparc", /* 65 */
75 - "Firebird/linux AMD64" /* 66 */
76 + "Firebird/linux AMD64", /* 66 */
78 + "Firebird/linux PPC", /* 67 */
79 + "Firebird/linux alpha" /* 68 */
83 --- firebird-1.5.1.4500/src/jrd/btr.cpp.orig 2004-08-08 14:17:42.000000000 +0200
84 +++ firebird-1.5.1.4500/src/jrd/btr.cpp 2004-08-08 14:16:30.000000000 +0200
87 inline SLONG BTR_get_quad(const UCHAR* p)
89 -#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
90 +#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(__alpha__)
91 // For IA32 (little-endian) this optimization is a _very_ large speed-up!
92 return *reinterpret_cast<const SLONG*>(p);
94 --- firebird-1.5.1.4500/src/include/fb_types.h.orig 2004-03-29 05:49:42.000000000 +0200
95 +++ firebird-1.5.1.4500/src/include/fb_types.h 2004-10-08 11:25:29.000000000 +0200
97 // Temporarly restrict new definition until ULONG clash with Windows
98 // type is solved. Win64 port is not possible before that point.
99 // Cannot use SIZEOF_LONG define here because we are in a public header
100 -#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
101 +#if defined(_LP64) || defined(__LP64__) || defined(__arch64__) || defined(__alpha__)
102 /* EKU: Firebird requires (S)LONG to be 32 bit */
103 # define LONG_DEFINED