From 4cad505fc98240eb66eaabfae61a9694f8158dda Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Tue, 7 Apr 2020 20:58:37 +0200 Subject: [PATCH 1/2] use instead of The manpage of poll(2) states that the prototype of poll is defined in . Use that header file instead of to allow compilation against musl-libc. Signed-off-by: Romain Naour --- hal/ethernet/linux/ethernet_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/ethernet/linux/ethernet_linux.c b/hal/ethernet/linux/ethernet_linux.c index c3ab2e20..9aa5c28d 100644 --- a/hal/ethernet/linux/ethernet_linux.c +++ b/hal/ethernet/linux/ethernet_linux.c @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include #include From 661405eb6066b67dfe51d5ff9635e29f86bdd238 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Tue, 7 Apr 2020 21:02:54 +0200 Subject: [PATCH 2/2] serial_port_linux: Add missing include sys/time.h POSIX says `struct timeval` is defined if is included. Adding this header allow to build against musl-libc. Signed-off-by: Romain Naour --- hal/serial/linux/serial_port_linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hal/serial/linux/serial_port_linux.c b/hal/serial/linux/serial_port_linux.c index e6308c05..15e57940 100644 --- a/hal/serial/linux/serial_port_linux.c +++ b/hal/serial/linux/serial_port_linux.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "hal_serial.h" #include "hal_time.h"