aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/netbsd.h
diff options
context:
space:
mode:
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