Skip to content

Commit 984a95a

Browse files
Fumonreconbot
authored andcommitted
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](tio/tio#65) on a similar, serial oriented project. Tested in an Alpine Linux docker container. Passing all hardware tests.
1 parent bceed62 commit 984a95a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/serialport-util/packages/node-serialport/src/serialport_linux.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#if defined(__linux__)
22

33
#include <sys/ioctl.h>
4+
#include <asm/ioctls.h>
45
#include <asm/termbits.h>
56

67
// Uses the termios2 interface to set nonstandard baud rates

0 commit comments

Comments
 (0)