summaryrefslogtreecommitdiff
path: root/src/include/port/freebsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/port/freebsd.h')
-rw-r--r--src/include/port/freebsd.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/include/port/freebsd.h b/src/include/port/freebsd.h
new file mode 100644
index 00000000000..4e754e77dec
--- /dev/null
+++ b/src/include/port/freebsd.h
@@ -0,0 +1,30 @@
+#define USE_POSIX_TIME
+
+#if defined(i386)
+#define NEED_I386_TAS_ASM
+#define HAS_TEST_AND_SET
+#endif
+
+#if defined(sparc)
+#define NEED_SPARC_TAS_ASM
+#define HAS_TEST_AND_SET
+#endif
+
+#if defined(vax)
+#define NEED_VAX_TAS_ASM
+#define HAS_TEST_AND_SET
+#endif
+
+#if defined(__ns32k__)
+#define NEED_NS32K_TAS_ASM
+#define HAS_TEST_AND_SET
+#endif
+
+#if defined(__m68k__)
+#define HAS_TEST_AND_SET
+#endif
+
+#if defined(__mips__)
+/* # undef HAS_TEST_AND_SET */
+#endif
+typedef unsigned char slock_t;