Skip to content

Commit

Permalink
Update to allow compiling for OpenBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
spoollord committed Jul 9, 2018
1 parent ee33240 commit 8f066bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serialport/serialport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

This comment has been minimized.

Copy link
@alejandrox778

alejandrox778 Dec 1, 2018

x

Expand Down

0 comments on commit 8f066bf

Please sign in to comment.