Merge pull request #128 from iangregory/patch-1

Update src/serialport_unix.cpp to build on OpenBSD
This commit is contained in:
Chris Williams 2013-03-13 20:50:08 -07:00
commit 87622fe02a

View file

@ -1,4 +1,3 @@
#ifndef WIN32
#include "serialport.h"
#include <unistd.h>
@ -46,7 +45,7 @@ int ToBaudConstant(int baudRate) {
case 57600: return B57600;
case 115200: return B115200;
case 230400: return B230400;
#ifndef __APPLE__
#if !defined(__APPLE__) && !defined(__OpenBSD__)
case 460800: return B460800;
case 500000: return B500000;
case 576000: return B576000;