From 02e2bfecf0b32037121abb5bc2925dcb83785934 Mon Sep 17 00:00:00 2001 From: Jade Bilkey Date: Thu, 15 Feb 2018 16:58:22 -0500 Subject: [PATCH] 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. --- src/serialport_linux.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/serialport_linux.cpp b/src/serialport_linux.cpp index 328b0fa95..4ee460201 100755 --- a/src/serialport_linux.cpp +++ b/src/serialport_linux.cpp @@ -1,6 +1,7 @@ #if defined(__linux__) #include +#include #include // Uses the termios2 interface to set nonstandard baud rates