---- firebird-1.5.1.4500/src/jrd/common.h.orig 2004-05-28 23:36:22.000000000 +0200
-+++ firebird-1.5.1.4500/src/jrd/common.h 2004-05-28 23:44:49.000000000 +0200
-@@ -131,6 +131,14 @@
- #define IMPLEMENTATION isc_info_db_impl_linux_sparc /* 65 */
- #endif /* sparc */
-
-+#ifdef __powerpc__
-+#define IMPLEMENTATION isc_info_db_impl_linux_ppc
-+#endif
-+
+--- Firebird-2.5.0.26074-0/src/jrd/common.h.orig 2010-09-08 10:43:27.000000000 +0200
++++ Firebird-2.5.0.26074-0/src/jrd/common.h 2010-10-28 07:51:57.395734339 +0200
+@@ -158,6 +158,11 @@
+ #define RISC_ALIGNMENT
+ #endif // IA64
+
+#ifdef __alpha__
-+#define IMPLEMENTATION isc_info_db_impl_linux_alpha
++#define IMPLEMENTATION isc_info_db_impl_linux_alpha /* 82 */
++#define RISC_ALIGNMENT
+#endif
+
- #define MEMMOVE(from,to,length) memmove ((void *)to, (void *)from, (size_t) length)
- #define MOVE_FAST(from,to,length) memcpy (to, from, (int) (length))
- #define MOVE_FASTER(from,to,length) memcpy (to, from, (int) (length))
---- firebird-1.5.1.4500/src/jrd/ibase.h.orig 2004-03-29 05:50:10.000000000 +0200
-+++ firebird-1.5.1.4500/src/jrd/ibase.h 2004-08-08 00:59:58.069029392 +0200
-@@ -1577,6 +1577,9 @@
- isc_info_db_impl_linux_sparc = 65,
- isc_info_db_impl_linux_amd64 = 66,
-
-+ isc_info_db_impl_linux_ppc = 67,
-+ isc_info_db_impl_linux_alpha = 68,
-+
- isc_info_db_impl_last_value /* Leave this LAST! */
- };
-
---- firebird-1.5.1.4500/src/jrd/pag.cpp.orig 2004-05-28 22:16:09.000000000 +0200
-+++ firebird-1.5.1.4500/src/jrd/pag.cpp 2004-05-28 23:58:59.000000000 +0200
-@@ -180,6 +180,12 @@
- #ifdef __sparc__
- #define CLASS 20
- #endif
-+#ifdef __powerpc__
-+#define CLASS 30
-+#endif
-+#ifdef __alpha__
-+#define CLASS 31
-+#endif
- #endif
+ #ifndef USE_POSIX_THREADS
+ // force pthread detection on Linux for distros that do not provide
+ // POSIX thread compatability
+--- Firebird-2.5.0.26074-0/src/jrd/inf_pub.h.orig 2010-09-08 10:43:27.000000000 +0200
++++ Firebird-2.5.0.26074-0/src/jrd/inf_pub.h 2010-10-28 07:52:00.183734339 +0200
+@@ -213,6 +213,7 @@
- #ifdef FREEBSD
---- firebird-1.5.1.4500/src/remote/xdr.cpp.orig 2004-08-08 00:57:44.918271384 +0200
-+++ firebird-1.5.1.4500/src/remote/xdr.cpp 2004-08-08 00:59:21.762548816 +0200
-@@ -39,10 +39,10 @@
- // The simpliest way to check it is to issue
- // "select abs(2.0/3.0) from rdb$database" from correct client
- // It will return big strange value in case of invalid define
--#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
-+#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(__alpha__)
- #define SWAP_DOUBLE
+ isc_info_db_impl_linux_sh = 80,
+ isc_info_db_impl_linux_sheb = 81,
++ isc_info_db_impl_linux_alpha = 82,
+
+ isc_info_db_impl_last_value // Leave this LAST!
+ };
+--- Firebird-2.5.0.26074-0/src/jrd/pag.cpp.orig 2010-09-08 10:43:27.000000000 +0200
++++ Firebird-2.5.0.26074-0/src/jrd/pag.cpp 2010-10-28 07:58:22.771734339 +0200
+@@ -160,9 +160,10 @@
+ static const int CLASS_LINUX_S390 = 37; // LINUX/s390
+ static const int CLASS_LINUX_SH = 38; // LINUX/SH (little-endian)
+ static const int CLASS_LINUX_SHEB = 39; // LINUX/SH (big-endian)
++static const int CLASS_LINUX_ALPHA = 40; // LINUX/Alpha
+
+ static const int CLASS_MAX10 = CLASS_LINUX_AMD64; // This should not be changed, no new ports with ODS10
+-static const int CLASS_MAX = CLASS_LINUX_SHEB;
++static const int CLASS_MAX = CLASS_LINUX_ALPHA;
+
+ // ARCHITECTURE COMPATIBILITY CLASSES
+
+@@ -259,7 +260,8 @@
+ archBigEndian, // CLASS_LINUX_S390X
+ archBigEndian, // CLASS_LINUX_S390
+ archLittleEndian, // CLASS_LINUX_SH
+- archBigEndian // CLASS_LINUX_SHEB
++ archBigEndian, // CLASS_LINUX_SHEB
++ archLittleEndian // CLASS_LINUX_ALPHA
+ };
+
+ #ifdef __sun
+@@ -319,6 +321,8 @@
+ const SSHORT CLASS = CLASS_LINUX_SH;
+ #elif defined(SHEB)
+ const SSHORT CLASS = CLASS_LINUX_SHEB;
++#elif defined(__alpha__)
++const SSHORT CLASS = CLASS_LINUX_ALPHA;
#else
--#if !defined(sparc) && !defined(PowerPC)
-+#if !defined(sparc) && !defined(PowerPC) && !defined(__powerpc__)
- #error "Define SWAP_DOUBLE for your platform correctly !"
- #endif
+ #error no support on other hardware for Linux
#endif
+--- Firebird-2.5.0.26074-0/src/jrd/utl.cpp.orig 2010-09-08 10:43:27.000000000 +0200
++++ Firebird-2.5.0.26074-0/src/jrd/utl.cpp 2010-10-28 07:57:59.231736853 +0200
+@@ -225,7 +225,8 @@
+ "Firebird/linux s390x", // 78
+ "Firebird/linux s390", // 79
+ "Firebird/linux SH", // 80
+- "Firebird/linux SHEB" // 81
++ "Firebird/linux SHEB", // 81
++ "Firebird/linux Alpha" // 82
+ };
+
+