$OpenBSD: patch-spectro_icoms_ux_c,v 1.1 2013/09/16 15:48:29 ajacoutot Exp $
--- spectro/icoms_ux.c.orig	Fri Aug 16 18:01:22 2013
+++ spectro/icoms_ux.c	Mon Sep 16 14:14:14 2013
@@ -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)
@@ -339,6 +339,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
