$OpenBSD$
--- src/util_console.cpp.orig	Wed Aug 13 12:07:32 2008
+++ src/util_console.cpp	Mon Oct 13 05:25:33 2008
@@ -92,7 +92,7 @@ void io_addhistory( const char * addme )
 // kb hit
 #ifndef __PLATFORM_WIN32__
   #include <string.h>
-#ifdef __PLATFORM_MACOSX__
+#ifdef __BSD_TERMIOS__
   #include <termios.h>
   static struct termios g_save;
 #else
@@ -119,7 +119,7 @@ t_CKBOOL kb_initscr()
 
 #ifndef __PLATFORM_WIN32__
 
-#ifdef __PLATFORM_MACOSX__
+#ifdef __BSD_TERMIOS__
     struct termios term;
     if( ioctl( 0, TIOCGETA, &term ) == -1 )
 #else
@@ -142,7 +142,7 @@ t_CKBOOL kb_initscr()
     term.c_cc[VMIN] = 0;
     term.c_cc[VTIME]=0;  
 
-#ifdef __PLATFORM_MACOSX__
+#ifdef __BSD_TERMIOS__
     ioctl( 0, TIOCSETA, &term );
 #else
     ioctl( 0, TCSETA, &term );
@@ -161,7 +161,7 @@ void kb_endwin()
     if( !g_init ) return;
 
 #ifndef __PLATFORM_WIN32__
-#ifdef __PLATFORM_MACOSX__
+#ifdef __BSD_TERMIOS__
     ioctl( 0, TIOCSETA, &g_save );
 #else
     ioctl( 0, TCSETA, &g_save );
