From 8f066bf9772eb7a976093131ab62b2d651755fca Mon Sep 17 00:00:00 2001 From: spoollord Date: Mon, 9 Jul 2018 08:45:37 -0600 Subject: [PATCH] Update to allow compiling for OpenBSD. --- serialport/serialport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serialport/serialport.c b/serialport/serialport.c index e9a1eb3..2f96b8c 100644 --- a/serialport/serialport.c +++ b/serialport/serialport.c @@ -288,6 +288,7 @@ void serialport_set_baudrate(unsigned int baudrate) cfsetospeed(&term,B230400); break; #ifndef __APPLE__ +#ifndef __OpenBSD__ case 460800: cfsetispeed(&term,B460800); cfsetospeed(&term,B460800); @@ -297,6 +298,7 @@ void serialport_set_baudrate(unsigned int baudrate) cfsetispeed(&term,B921600); cfsetospeed(&term,B921600); break; +#endif #endif default: LOGWARN("serialport_set_baudrate: baud rate %d may not work", baudrate);