+++ /dev/null
---- Firebird/src/jrd/tra.h.org 2007-02-28 11:21:45.794623000 +0100
-+++ Firebird/src/jrd/tra.h 2007-02-28 11:22:10.666623000 +0100
-@@ -127,7 +127,7 @@
- #define tra_precommitted 5 /* Transaction is precommitted */
-
- /* The highest transaction number possible. This is 0x7fffffff if SLONG is 32 bits. */
--#define MAX_TRA_NUMBER (~(1L << (BITS_PER_LONG - 1)))
-+#define MAX_TRA_NUMBER (MAX_SLONG)
- /* Savepoint block */
-
- class sav : public pool_alloc<type_sav>
+++ /dev/null
---- firebird-1.5.3.4870/src/jrd/pag.cpp.org 2007-01-02 13:51:03.000000000 +0000
-+++ firebird-1.5.3.4870/src/jrd/pag.cpp 2007-01-02 13:56:47.000000000 +0000
-@@ -143,8 +143,11 @@
- static const int CLASS_NETBSD_I386 = 22; // NetBSD/i386
- static const int CLASS_DARWIN_PPC = 23; // Darwin/PowerPC
- static const int CLASS_LINUX_AMD64 = 24; // LINUX on AMD64 systems
-+static const int CLASS_FREEBSD_AMD64 = 25;// FreeBSD/amd64
-+static const int CLASS_WINDOWS_AMD64 = 26;// Windows/amd64
-+static const int CLASS_LINUX_PPC = 27; // LINUX/PowerPC
-
--static const int CLASS_MAX10 = CLASS_LINUX_AMD64;
-+static const int CLASS_MAX10 = CLASS_LINUX_PPC;
-
- // ARCHITECTURE COMPATIBILITY CLASSES
-
-@@ -188,7 +191,10 @@
- archIntel86, // CLASS_FREEBSD_I386
- archIntel86, // CLASS_NETBSD_I386
- archUnknown, // CLASS_DARWIN_PPC
-- archUnknown // CLASS_LINUX_AMD64
-+ archUnknown, // CLASS_LINUX_AMD64
-+ archUnknown, // CLASS_FREEBSD_AMD64
-+ archUnknown, // CLASS_WINDOWS_AMD64
-+ archUnknown // CLASS_LINUX_PPC
- };
-
- #ifdef sun
-@@ -256,6 +262,9 @@
- #define CLASS CLASS_DARWIN_PPC
- #endif
-
-+#ifdef PPC
-+#define CLASS CLASS_LINUX_PPC
-+#endif
-
- int PAG_add_clump(
- SLONG page_num,