- #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_arm = 75,
+ isc_info_db_impl_linux_ia64 = 76,
++ isc_info_db_impl_linux_alpha = 77,
+
+ isc_info_db_impl_last_value // Leave this LAST!
+ };
+--- Firebird-2.1.1.17910-0/src/jrd/pag.cpp.orig 2008-05-27 11:27:37.000000000 +0200
++++ Firebird-2.1.1.17910-0/src/jrd/pag.cpp 2008-07-18 22:42:52.586039735 +0200
+@@ -158,9 +158,10 @@ static const int CLASS_DARWIN_X64 = 31;
+ static const int CLASS_LINUX_ARM = 33; // LINUX/ARM
+ static const int CLASS_LINUX_IA64 = 34; // LINUX/IA64
+ static const int CLASS_DARWIN_PPC64 = 35; // Darwin/PowerPC64
++static const int CLASS_LINUX_ALPHA = 36; // 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_DARWIN_PPC64;
++static const int CLASS_MAX = CLASS_LINUX_ALPHA;
+
+ // ARCHITECTURE COMPATIBILITY CLASSES
+
+@@ -250,7 +251,8 @@ static ArchitectureType archMatrix[CLASS
+ archLittleEndian, // CLASS_SOLARIS_AMD64
+ archLittleEndian, // CLASS_LINUX_ARM
+ archLittleEndian, // CLASS_LINUX_IA64
+- archBigEndian // CLASS_DARWIN_PPC64
++ archBigEndian, // CLASS_DARWIN_PPC64
++ archLittleEndian // CLASS_LINUX_ALPHA
+ };
+
+ #ifdef sun
+@@ -308,6 +310,8 @@ const SSHORT CLASS = CLASS_LINUX_MIPSEL
+ const SSHORT CLASS = CLASS_LINUX_MIPS;
+ #elif defined(IA64)
+ const SSHORT CLASS = CLASS_LINUX_IA64;
++#elif defined(__alpha__)
++const SSHORT CLASS = CLASS_LINUX_ALPHA;