diff --git a/uart/uart_posix.c b/uart/uart_posix.c index 0ead61500..d857729d6 100644 --- a/uart/uart_posix.c +++ b/uart/uart_posix.c @@ -55,6 +55,11 @@ #include #include +// Taken from https://github.com/unbit/uwsgi/commit/b608eb1772641d525bfde268fe9d6d8d0d5efde7 +#ifndef SOL_TCP +# define SOL_TCP IPPROTO_TCP +#endif + typedef struct termios term_info; typedef struct { int fd; // Serial port file descriptor