serial_port_linux: Add missing include sys/time.h

POSIX says `struct timeval` is defined if <sys/time.h> is included.

Adding this header allow to build against musl-libc.

Signed-off-by: Romain Naour <romain.naour@smile.fr>
(cherry picked from v1.4 branch commit 661405eb60)
pull/239/head
Romain Naour 5 years ago
parent a7d744d55d
commit 801d43e118

@ -29,6 +29,7 @@
#include <termios.h> #include <termios.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <sys/time.h>
#include "hal_serial.h" #include "hal_serial.h"
#include "hal_time.h" #include "hal_time.h"

Loading…
Cancel
Save