Index: libs/indicom.c
--- libs/indicom.c.orig
+++ libs/indicom.c
@@ -50,7 +50,7 @@
 #include <string.h>
 #include <time.h>
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__OpenBSD__)
 #include <sys/ioctl.h>
 #endif
 
@@ -785,7 +785,7 @@ int tty_connect(const char *device, int bit_rate, int 
     case 57600:  bps = B57600;  break;
     case 115200: bps = B115200; break;
     case 230400: bps = B230400; break;
-#if !defined(__APPLE__) && !defined(__FreeBSD__)
+#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
     case 460800: bps = B460800; break;
     case 576000: bps = B576000; break;
     case 921600: bps = B921600; break;
