]> git.pld-linux.org Git - packages/Firebird.git/blob - Firebird-morearchs.patch
- adjusted for no sparc patch
[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 @@ -1577,6 +1577,9 @@
21         isc_info_db_impl_linux_sparc = 65,
22         isc_info_db_impl_linux_amd64 = 66,
23  
24 +       isc_info_db_impl_linux_ppc = 67,
25 +       isc_info_db_impl_linux_alpha = 68,
26 +
27         isc_info_db_impl_last_value   /* Leave this LAST! */
28      };
29  
30 --- firebird-1.5.1.4500/src/jrd/pag.cpp.orig    2004-05-28 22:16:09.000000000 +0200
31 +++ firebird-1.5.1.4500/src/jrd/pag.cpp 2004-05-28 23:58:59.000000000 +0200
32 @@ -180,6 +180,12 @@
33  #ifdef __sparc__
34  #define CLASS           20
35  #endif
36 +#ifdef __powerpc__
37 +#define CLASS          30
38 +#endif
39 +#ifdef __alpha__
40 +#define CLASS          31
41 +#endif
42  #endif
43  
44  #ifdef FREEBSD
45 --- firebird-1.5.1.4500/src/remote/xdr.cpp.orig 2004-08-08 00:57:44.918271384 +0200
46 +++ firebird-1.5.1.4500/src/remote/xdr.cpp      2004-08-08 00:59:21.762548816 +0200
47 @@ -39,10 +39,10 @@
48  // The simpliest way to check it is to issue
49  // "select abs(2.0/3.0) from rdb$database" from correct client
50  // It will return big strange value in case of invalid define
51 -#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64)
52 +#if defined(i386) || defined(I386) || defined(_M_IX86) || defined(AMD64) || defined(__alpha__)
53  #define                SWAP_DOUBLE
54  #else
55 -#if !defined(sparc) && !defined(PowerPC)
56 +#if !defined(sparc) && !defined(PowerPC) && !defined(__powerpc__)
57  #error "Define SWAP_DOUBLE for your platform correctly !"
58  #endif
59  #endif
This page took 0.034499 seconds and 3 git commands to generate.