mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:03:03 +01:00
Applied Dan's patch to start port for s390 - primarily to reserve CLASS and IMPLEMENTATION
This commit is contained in:
parent
82af3b218e
commit
c8485edf9e
@ -210,6 +210,15 @@ dnl CPU_TYPE=ppc64
|
||||
SHRLIB_EXT=so
|
||||
;;
|
||||
|
||||
s390x-*-linux*)
|
||||
MAKEFILE_PREFIX=linux_s390x
|
||||
INSTALL_PREFIX=linux
|
||||
PLATFORM=LINUX
|
||||
AC_DEFINE(LINUX, 1, [Define this if OS is Linux])
|
||||
EDITLINE_FLG=Y
|
||||
SHRLIB_EXT=so
|
||||
;;
|
||||
|
||||
*-*-linux*)
|
||||
MAKEFILE_PREFIX=linux_generic
|
||||
INSTALL_PREFIX=linux
|
||||
|
@ -162,6 +162,10 @@
|
||||
#define USE_POSIX_THREADS
|
||||
#endif
|
||||
|
||||
#ifdef S390X
|
||||
#define IMPLEMENTATION isc_info_db_impl_linux_s390x // 78
|
||||
#endif // S390X
|
||||
|
||||
#endif /* LINUX */
|
||||
|
||||
|
||||
|
@ -208,6 +208,7 @@ enum info_db_implementations
|
||||
isc_info_db_impl_linux_ia64 = 76,
|
||||
|
||||
isc_info_db_impl_darwin_ppc64 = 77,
|
||||
isc_info_db_impl_linux_s390x = 78,
|
||||
|
||||
isc_info_db_impl_last_value // Leave this LAST!
|
||||
};
|
||||
|
@ -159,9 +159,10 @@ static const int CLASS_SOLARIS_AMD64 = 32; // Solaris/amd64
|
||||
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_S390X = 36; // LINUX/s390x
|
||||
|
||||
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_S390X;
|
||||
|
||||
// ARCHITECTURE COMPATIBILITY CLASSES
|
||||
|
||||
@ -254,7 +255,8 @@ static const ArchitectureType archMatrix[CLASS_MAX + 1] =
|
||||
archLittleEndian, // CLASS_SOLARIS_AMD64
|
||||
archLittleEndian, // CLASS_LINUX_ARM
|
||||
archLittleEndian, // CLASS_LINUX_IA64
|
||||
archBigEndian // CLASS_DARWIN_PPC64
|
||||
archBigEndian, // CLASS_DARWIN_PPC64
|
||||
archBigEndian // CLASS_LINUX_S390X
|
||||
};
|
||||
|
||||
#ifdef __sun
|
||||
@ -304,6 +306,8 @@ const SSHORT CLASS = CLASS_LINUX_MIPSEL;
|
||||
const SSHORT CLASS = CLASS_LINUX_MIPS;
|
||||
#elif defined(IA64)
|
||||
const SSHORT CLASS = CLASS_LINUX_IA64;
|
||||
#elif defined(S390X)
|
||||
const SSHORT CLASS = CLASS_LINUX_S390X;
|
||||
#else
|
||||
#error no support on other hardware for Linux
|
||||
#endif
|
||||
|
@ -221,7 +221,8 @@ static const TEXT* const impl_implementation[] =
|
||||
"Firebird/sun/amd64", // 74
|
||||
"Firebird/linux ARM", // 75
|
||||
"Firebird/linux IA64", // 76
|
||||
"Firebird/Darwin/PowerPC64" // 77
|
||||
"Firebird/Darwin/PowerPC64", // 77
|
||||
"Firebird/linux s390x" // 78
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user