mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
allow PostgreSQL to compile and run on Alpha.
The DB is 64-bit capable so really only a few bits of configuration for FreeBSD were needed. Submitted by: Thomas Valentino Crimi <tcrimi+@andrew.cmu.edu>
This commit is contained in:
parent
77f7c1a385
commit
38b11af5db
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32148
42
databases/postgresql-devel-server/files/patch-bd
Normal file
42
databases/postgresql-devel-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql-devel/files/patch-bd
Normal file
42
databases/postgresql-devel/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql7/files/patch-bd
Normal file
42
databases/postgresql7/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql73-server/files/patch-bd
Normal file
42
databases/postgresql73-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql73/files/patch-bd
Normal file
42
databases/postgresql73/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql74-server/files/patch-bd
Normal file
42
databases/postgresql74-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql80-server/files/patch-bd
Normal file
42
databases/postgresql80-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql81-server/files/patch-bd
Normal file
42
databases/postgresql81-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql82-server/files/patch-bd
Normal file
42
databases/postgresql82-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql83-server/files/patch-bd
Normal file
42
databases/postgresql83-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql84-server/files/patch-bd
Normal file
42
databases/postgresql84-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql90-server/files/patch-bd
Normal file
42
databases/postgresql90-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql91-server/files/patch-bd
Normal file
42
databases/postgresql91-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
42
databases/postgresql92-server/files/patch-bd
Normal file
42
databases/postgresql92-server/files/patch-bd
Normal file
@ -0,0 +1,42 @@
|
||||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
Loading…
Reference in New Issue
Block a user