-/* ========================================================================= */
-/* define additional keywords for several Unix platforms */
-/* ========================================================================= */
+#if defined(bsdi) || defined(__bsdi) || defined(__bsdi__)
+#define PLATFORM_BSDI
+#define PLATFORM_BSD
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "BSDI"
+#endif
+
+#if defined(_arch_dreamcast)
+#define PLATFORM_DREAMCAST
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "Dreamcast"
+#endif
+
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+#define PLATFORM_FREEBSD
+#define PLATFORM_BSD
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "FreeBSD"
+#endif
+
+#if defined(hpux) || defined(__hpux) || defined(__hpux__)
+#define PLATFORM_HPUX
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "HP-UX"
+#endif