mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
fix(linux): Adds missing header file for musl libc (eg alpine) (#1487)
Fixes #1470 After adding the new custom baud rate implementation for Linux, a build breaking bug occurred on Alpine Linux due to musl's handling of the kernel header files involved with ioctls. This patch introduces a fix by using the solution found [here](https://github.com/tio/tio/pull/65) on a similar, serial oriented project. Tested in an Alpine Linux docker container. Passing all hardware tests.
This commit is contained in:
parent
792459d812
commit
02e2bfecf0
1 changed files with 1 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#if defined(__linux__)
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <asm/ioctls.h>
|
||||
#include <asm/termbits.h>
|
||||
|
||||
// Uses the termios2 interface to set nonstandard baud rates
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue