$OpenBSD: patch-spectro_icoms_ux_c,v 1.2 2014/03/18 08:16:51 ajacoutot Exp $
--- spectro/icoms_ux.c.orig	Fri Jan 31 05:08:57 2014
+++ spectro/icoms_ux.c	Tue Mar 18 09:10:33 2014
@@ -218,7 +218,7 @@ int icompaths_refresh_paths(icompaths *p) {
 				break;
 
 			if (!(
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
 			   /* This should match uart & USB devs. */
 				( strncmp (de->d_name, "cua", 3) == 0
 				&& strlen (de->d_name) < 7)
@@ -340,6 +340,9 @@ static int icoms_ser_read(icoms *p, char *rbuf, int bs
 # ifndef IOSSIOSPEED
 #  define IOSSIOSPEED    _IOW('T', 2, speed_t)
 # endif
+#endif
+
+#if defined(__APPLE__) || defined(__OpenBSD__)
 # ifndef B921600
 #  define B921600 921600
 # endif
