]> git.pld-linux.org Git - packages/Firebird.git/blob - Firebird-morearchs.patch
- rel 4
[packages/Firebird.git] / Firebird-morearchs.patch
1 --- firebird-1.5.1.4500/src/jrd/common.h.orig   2004-05-28 23:36:22.000000000 +0200
2 +++ firebird-1.5.1.4500/src/jrd/common.h        2004-05-28 23:44:49.000000000 +0200
3 @@ -131,6 +131,14 @@
4  #define IMPLEMENTATION  isc_info_db_impl_linux_sparc /* 65  */
5  #endif /* sparc */
6  
7 +#ifdef __powerpc__
8 +#define IMPLEMENTATION isc_info_db_impl_linux_ppc
9 +#endif
10 +
11 +#ifdef __alpha__
12 +#define IMPLEMENTATION isc_info_db_impl_linux_alpha
13 +#endif
14 +
15  #define MEMMOVE(from,to,length)                memmove ((void *)to, (void *)from, (size_t) length)
16  #define MOVE_FAST(from,to,length)       memcpy (to, from, (int) (length))
17  #define MOVE_FASTER(from,to,length)     memcpy (to, from, (int) (length))
18 --- firebird-1.5.1.4500/src/jrd/ibase.h.orig    2004-03-29 05:50:10.000000000 +0200
19 +++ firebird-1.5.1.4500/src/jrd/ibase.h 2004-08-08 00:59:58.069029392 +0200
20 @@ -57,7 +57,7 @@
21  // It is difficult to detect 64-bit long from the redistributable header
22  // we do not care of 16-bit platforms anymore thus we may use plain "int"
23  // which is 32-bit on all platforms we support
24 -#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
25 +#if defined(_LP64) || defined(__LP64__) || defined(__arch64__) || defined(__alpha__)
26  typedef        int             ISC_LONG;
27  typedef        unsigned int    ISC_ULONG;
28  #else
29 @@ -1577,6 +1577,9 @@
30         isc_info_db_impl_linux_sparc = 65,
31         isc_info_db_impl_linux_amd64 = 66,
32  
33 +       isc_info_db_impl_linux_ppc = 67,
34 +       isc_info_db_impl_linux_alpha = 68,
35 +
36         isc_info_db_impl_last_value   /* Leave this LAST! */
37      };
38  
39 --- firebird-1.5.1.4500/src/jrd/pag.cpp.orig    2004-05-28 22:16:09.000000000 +0200
40 +++ firebird-1.5.1.4500/src/jrd/pag.cpp 2004-05-28 23:58:59.000000000 +0200
41 @@ -180,6 +180,12 @@
42  #ifdef __sparc__
43  #define CLASS           20
44  #endif
45 +#ifdef __powerpc__
46 +#define CLASS          30
47 +#endif
48 +#ifdef __alpha__
49 +#define CLASS          31
50 +#endif
51  #endif
52  
53  #ifdef FREEBSD
54 --- firebird-1.5.1.4500/src/remote/xdr.cpp.orig 2004-08-08 00:57:44.918271384 +0200
55 +++ firebird-1.5.1.4500/src/remote/xdr.cpp      2004-08-08 00:59:21.762548816 +0200
56 @@ -39,10 +39,10 @@
57  // The simpliest way to check it is to issue
58  // "select abs(2.0/3.0) from rdb$database" from correct client
59  // It will return big strange value in case of invalid define
60 -#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
61 +#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(__alpha__)
62  #define                SWAP_DOUBLE
63  #else
64 -#if !defined(sparc) && !defined(PowerPC)
65 +#if !defined(sparc) && !defined(PowerPC) && !defined(__powerpc__)
66  #error "Define SWAP_DOUBLE for your platform correctly !"
67  #endif
68  #endif
69 --- firebird-1.5.1.4500/src/jrd/utl.cpp.orig    2004-03-29 05:50:11.000000000 +0200
70 +++ firebird-1.5.1.4500/src/jrd/utl.cpp 2004-08-08 14:13:50.000000000 +0200
71 @@ -255,7 +255,10 @@
72      "Firebird/Darwin/PowerPC", /* 63 */
73      "Firebird/SINIX-Z",        /* 64 */
74      "Firebird/linux Sparc",    /* 65 */
75 -    "Firebird/linux AMD64"     /* 66 */
76 +    "Firebird/linux AMD64",    /* 66 */
77 +
78 +    "Firebird/linux PPC",      /* 67 */
79 +    "Firebird/linux alpha"     /* 68 */
80  };
81  
82  
83 --- firebird-1.5.1.4500/src/jrd/btr.cpp.orig    2004-08-08 14:17:42.000000000 +0200
84 +++ firebird-1.5.1.4500/src/jrd/btr.cpp 2004-08-08 14:16:30.000000000 +0200
85 @@ -191,7 +191,7 @@
86  //
87  inline SLONG BTR_get_quad(const UCHAR* p)
88  {
89 -#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
90 +#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(__alpha__)
91         // For IA32 (little-endian) this optimization is a _very_ large speed-up!
92         return *reinterpret_cast<const SLONG*>(p);
93  #else
94 --- firebird-1.5.1.4500/src/include/fb_types.h.orig     2004-03-29 05:49:42.000000000 +0200
95 +++ firebird-1.5.1.4500/src/include/fb_types.h  2004-10-08 11:25:29.000000000 +0200
96 @@ -74,7 +74,7 @@
97  // Temporarly restrict new definition until ULONG clash with Windows
98  // type is solved. Win64 port is not possible before that point.
99  // Cannot use SIZEOF_LONG define here because we are in a public header
100 -#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
101 +#if defined(_LP64) || defined(__LP64__) || defined(__arch64__) || defined(__alpha__)
102         /* EKU: Firebird requires (S)LONG to be 32 bit */
103  #   define LONG_DEFINED
104      typedef int SLONG;
This page took 0.034773 seconds and 3 git commands to generate.