aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/openbsd.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-01-20 00:03:55 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-01-20 00:03:55 +0000
commita7ea9f46e17f7ff9fd665c11dcd4466749f4e8ea (patch)
tree870d36ccfc5b66333088878e59afee0b5f6e47e6 /src/include/port/openbsd.h
parent58f402851804ad85f6b74d0d47b5c6ee5e636246 (diff)
downloadpostgresql-a7ea9f46e17f7ff9fd665c11dcd4466749f4e8ea.tar.gz
postgresql-a7ea9f46e17f7ff9fd665c11dcd4466749f4e8ea.zip
Still further tweaking of s_lock assembler: do not assume that leading
whitespace is unimportant in assembly code. Also, move VAX definition of typedef slock_t to port header files to be like all the other ports. Note that netbsd.h and openbsd.h are now identical, and I rather think that freebsd.h is broken in the places where it doesn't agree --- but I'll leave it to the freebsders to look at that.
Diffstat (limited to 'src/include/port/openbsd.h')
-rw-r--r--src/include/port/openbsd.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/include/port/openbsd.h b/src/include/port/openbsd.h
index 63e42362480..aba5c72fe62 100644
--- a/src/include/port/openbsd.h
+++ b/src/include/port/openbsd.h
@@ -1,43 +1,47 @@
#if defined(__i386__)
#define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
#endif
#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
#endif
#if defined(__vax__)
#define NEED_VAX_TAS_ASM
#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
#endif
#if defined(__ns32k__)
#define NEED_NS32K_TAS_ASM
#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
#endif
#if defined(__m68k__)
#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
#endif
#if defined(__arm__)
#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
#endif
#if defined(__mips__)
/* # undef HAS_TEST_AND_SET */
#endif
-#if defined(__powerpc__)
+#if defined(__alpha__)
#define HAS_TEST_AND_SET
+typedef unsigned long slock_t;
#endif
#if defined(__powerpc__)
+#define HAS_TEST_AND_SET
typedef unsigned int slock_t;
-
-#else
-typedef unsigned char slock_t;
-
#endif