File m68k-support.patch of Package firebird
Index: Firebird-2.5.2.26539-0/src/jrd/common.h
===================================================================
--- Firebird-2.5.2.26539-0.orig/src/jrd/common.h
+++ Firebird-2.5.2.26539-0/src/jrd/common.h
@@ -196,6 +196,12 @@
#define IMPLEMENTATION isc_info_db_impl_linux_aarch64 /* 84 */
#endif /* alpha */
+#ifdef __mc68000__
+#define IMPLEMENTATION isc_info_db_impl_linux_m68k /* 85 */
+#undef FB_ALIGNMENT
+#define FB_ALIGNMENT 4
+#endif /* mc68000 */
+
#endif /* LINUX */
Index: Firebird-2.5.2.26539-0/src/jrd/inf_pub.h
===================================================================
--- Firebird-2.5.2.26539-0.orig/src/jrd/inf_pub.h
+++ Firebird-2.5.2.26539-0/src/jrd/inf_pub.h
@@ -216,6 +216,7 @@ enum info_db_implementations
isc_info_db_impl_linux_hppa = 82,
isc_info_db_impl_linux_alpha = 83,
isc_info_db_impl_linux_aarch64 = 84,
+ isc_info_db_impl_linux_m68k = 85,
isc_info_db_impl_last_value // Leave this LAST!
};
Index: Firebird-2.5.2.26539-0/src/jrd/pag.cpp
===================================================================
--- Firebird-2.5.2.26539-0.orig/src/jrd/pag.cpp
+++ Firebird-2.5.2.26539-0/src/jrd/pag.cpp
@@ -163,9 +163,10 @@ static const int CLASS_LINUX_SHEB = 39;
static const int CLASS_LINUX_HPPA = 40; // LINUX/HPPA
static const int CLASS_LINUX_ALPHA = 41; // LINUX/ALPHA
static const int CLASS_LINUX_AARCH64 = 42; // LINUX/AARCH64
+static const int CLASS_LINUX_M68K = 43; // LINUX/M68K
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_AARCH64;
+static const int CLASS_MAX = CLASS_LINUX_M68K;
// ARCHITECTURE COMPATIBILITY CLASSES
@@ -265,7 +266,8 @@ static const ArchitectureType archMatrix
archBigEndian, // CLASS_LINUX_SHEB
archBigEndian, // CLASS_LINUX_HPPA
archLittleEndian, // CLASS_LINUX_ALPHA
- archLittleEndian // CLASS_LINUX_AARCH64
+ archLittleEndian, // CLASS_LINUX_AARCH64
+ archBigEndian // CLASS_LINUX_M68K
};
#ifdef __sun
@@ -331,6 +333,8 @@ const SSHORT CLASS = CLASS_LINUX_HPPA;
const SSHORT CLASS = CLASS_LINUX_ALPHA;
#elif defined(__aarch64__)
const SSHORT CLASS = CLASS_LINUX_AARCH64;
+#elif defined(__mc68000__)
+const SSHORT CLASS = CLASS_LINUX_M68K;
#else
#error no support on other hardware for Linux
#endif
Index: Firebird-2.5.2.26539-0/src/jrd/utl.cpp
===================================================================
--- Firebird-2.5.2.26539-0.orig/src/jrd/utl.cpp
+++ Firebird-2.5.2.26539-0/src/jrd/utl.cpp
@@ -228,7 +228,8 @@ static const TEXT* const impl_implementa
"Firebird/linux SHEB", // 81
"Firebird/linux HPPA", // 82
"Firebird/linux ALPHA", // 83
- "Firebird/linux AARCH64" // 84
+ "Firebird/linux AARCH64", // 84
+ "Firebird/linux M68K" // 85
};