aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/netbsd.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-12-31 03:34:01 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-12-31 03:34:01 +0000
commitfada8ee41f166fb1cb2c6ce000f9b746b9142379 (patch)
treeb8f9ebc6e592b892cf4ddb98e7a619c05816c870 /src/include/port/netbsd.h
parent4723b2b99bc2d4b52a7c8a047485707aeb643895 (diff)
downloadpostgresql-fada8ee41f166fb1cb2c6ce000f9b746b9142379.tar.gz
postgresql-fada8ee41f166fb1cb2c6ce000f9b746b9142379.zip
NetBSD/Alpha porting fixes from tom@minnesota.com.
Diffstat (limited to 'src/include/port/netbsd.h')
-rw-r--r--src/include/port/netbsd.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/include/port/netbsd.h b/src/include/port/netbsd.h
index 63e42362480..aba5c72fe62 100644
--- a/src/include/port/netbsd.h
+++ b/src/include/port/netbsd.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