aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/netbsd.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-09-12 15:49:34 +0000
committerBruce Momjian <bruce@momjian.us>2003-09-12 15:49:34 +0000
commit69a46e9ce1f80056f5b72aaa80b29821bdf821c1 (patch)
tree237517dad117c7d52f20f277a6a99932da0bfe76 /src/include/port/netbsd.h
parent9182481bea3b72eb7ea60d8fcc0b0c6ccd179fc5 (diff)
downloadpostgresql-69a46e9ce1f80056f5b72aaa80b29821bdf821c1.tar.gz
postgresql-69a46e9ce1f80056f5b72aaa80b29821bdf821c1.zip
Enable Opteron/Itanium spinlocks.
Diffstat (limited to 'src/include/port/netbsd.h')
-rw-r--r--src/include/port/netbsd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/port/netbsd.h b/src/include/port/netbsd.h
index 7729fa5b9bb..386584e9a31 100644
--- a/src/include/port/netbsd.h
+++ b/src/include/port/netbsd.h
@@ -1,9 +1,14 @@
-#if defined(__i386__)
+#if defined(__i386__) || defined(__x86_64__)
#define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
#endif
+#if defined(__ia64)
+#define HAS_TEST_AND_SET
+typedef unsigned int slock_t;
+#endif
+
#if defined(__sparc__)
#define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET