From 7fce2e2a3a3fbbaa2b645d810bde8a50b9c78023 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 31 Jan 2016 08:57:05 +0100 Subject: [PATCH] uart.c: fix build with musl libc musl does not define CMSPAR on all archs, patch inspired by http://git.alpinelinux.org/cgit/aports/plain/main/freerdp/musl-fix.patch musl needs sys/select.h to provide fd_set. Signed-off-by: Bernd Kuhls Signed-off-by: Brendan Le Foll --- src/uart/uart.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/uart/uart.c b/src/uart/uart.c index 6d3973a..0f8a2e3 100644 --- a/src/uart/uart.c +++ b/src/uart/uart.c @@ -29,10 +29,15 @@ #include #include #include +#include #include "uart.h" #include "mraa_internal.h" +#ifndef CMSPAR +#define CMSPAR 010000000000 +#endif + // This function takes an unsigned int and converts it to a B* speed_t // that can be used with linux/posix termios static speed_t