From a015ef37330ddd44c9a2d820e1def6545d4dea8d Mon Sep 17 00:00:00 2001 From: Jean-Michel Picod Date: Tue, 4 Dec 2018 08:12:05 +0100 Subject: [PATCH] Fix compilation error on OS X (#730) --- uart/uart_posix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uart/uart_posix.c b/uart/uart_posix.c index e3113e86..1db375b2 100644 --- a/uart/uart_posix.c +++ b/uart/uart_posix.c @@ -55,6 +55,12 @@ #include #include +// Fix missing definition on OS X. +// 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 -- 2.39.5