summaryrefslogtreecommitdiff
path: root/databases/firebird-server/files/patch-amd64
blob: 1f4d465389b33918014fd76888fe40026f12a7f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
--- src/jrd/common.h.orig	Mon Jan 23 20:52:45 2006
+++ src/jrd/common.h	Mon Jan 23 20:54:36 2006
@@ -273,8 +273,14 @@
 
 #define UNIX  1
 #define IEEE  1
+
+#ifdef AMD64
+#define IMPLEMENTATION  isc_info_db_impl_freebsd_amd64 /* 67  next higher unique n
+umber, See you later  */
+#else
 #define I386  1
 #define IMPLEMENTATION    isc_info_db_impl_freebsd   /* 61 */
+#endif
 
 #define QUADFORMAT "ll"
 #define QUADCONST(n) (n##LL)
--- src/jrd/ibase.h.orig	Mon Jan 23 20:51:38 2006
+++ src/jrd/ibase.h	Mon Jan 23 20:52:08 2006
@@ -1577,6 +1577,8 @@
 	isc_info_db_impl_linux_sparc = 65,
 	isc_info_db_impl_linux_amd64 = 66,
 
+	isc_info_db_impl_freebsd_amd64 = 67,
+
 	isc_info_db_impl_last_value   /* Leave this LAST! */
     };
 
--- src/jrd/pag.cpp.orig	Sat Mar 26 07:07:11 2005
+++ src/jrd/pag.cpp	Mon Jan 23 21:27:49 2006
@@ -143,8 +143,9 @@
 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_MAX10 = CLASS_LINUX_AMD64;
+static const int CLASS_MAX10 = CLASS_FREEBSD_AMD64;
 
 // ARCHITECTURE COMPATIBILITY CLASSES
 
@@ -188,7 +189,8 @@
 	archIntel86, // CLASS_FREEBSD_I386
     archIntel86, // CLASS_NETBSD_I386
 	archUnknown, // CLASS_DARWIN_PPC
-	archUnknown  // CLASS_LINUX_AMD64
+	archUnknown, // CLASS_LINUX_AMD64
+	archUnknown  // CLASS_FREEBSD_AMD64
 };
 
 #ifdef sun
@@ -239,7 +241,12 @@
 #endif
 
 #ifdef FREEBSD
+#ifdef i386
 #define CLASS           CLASS_FREEBSD_I386
+#endif
+#ifdef AMD64
+#define CLASS           CLASS_FREEBSD_AMD64
+#endif
 #endif
 
 #ifdef NETBSD
--- src/jrd/utl.cpp.orig	Mon Jan 23 20:56:00 2006
+++ src/jrd/utl.cpp	Mon Jan 23 20:56:37 2006
@@ -255,7 +255,8 @@
     "Firebird/Darwin/PowerPC",	/* 63 */
     "Firebird/SINIX-Z",	/* 64 */
     "Firebird/linux Sparc",	/* 65 */
-    "Firebird/linux AMD64"	/* 66 */
+    "Firebird/linux AMD64",	/* 66 */
+    "Firebird/FreeBSD/amd64"	/* 67 */
 };