mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Merge branch 'iangregory-OpenBSD-Compatibility'
This commit is contained in:
commit
17ea1fc0e8
1 changed files with 8 additions and 4 deletions
|
|
@ -24,6 +24,10 @@ Boolean lockInitialised = FALSE;
|
|||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
#if defined(__OpenBSD__)
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
||||
#if defined(__linux__)
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/serial.h>
|
||||
|
|
@ -41,7 +45,7 @@ OpenBatonPlatformOptions* ParsePlatformOptions(const v8::Local<v8::Object>& opti
|
|||
UnixPlatformOptions* result = new UnixPlatformOptions();
|
||||
result->vmin = options->Get(NanNew<v8::String>("vmin"))->ToInt32()->Int32Value();
|
||||
result->vtime = options->Get(NanNew<v8::String>("vtime"))->ToInt32()->Int32Value();
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
@ -124,9 +128,9 @@ int ToDataBitsConstant(int dataBits) {
|
|||
|
||||
|
||||
void EIO_Open(uv_work_t* req) {
|
||||
OpenBaton* data = static_cast<OpenBaton*>(req->data);
|
||||
UnixPlatformOptions* platformOptions = static_cast<UnixPlatformOptions*>(data->platformOptions);
|
||||
|
||||
OpenBaton* data = static_cast<OpenBaton*>(req->data);
|
||||
UnixPlatformOptions* platformOptions = static_cast<UnixPlatformOptions*>(data->platformOptions);
|
||||
|
||||
int baudRate = ToBaudConstant(data->baudRate);
|
||||
|
||||
// #if not ( defined(MAC_OS_X_VERSION_10_4) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4) )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue