mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Merge pull request #128 from iangregory/patch-1
Update src/serialport_unix.cpp to build on OpenBSD
This commit is contained in:
commit
87622fe02a
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue