From 898484f642aed5ad696690728431bd4419ccce7d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 4 Dec 2018 13:51:28 +0100 Subject: [PATCH] FIX: compilation for OS X, see https://github.com/Proxmark/proxmark3/pull/730/ (@jmichelp) --- uart/uart_posix.c | 5 +++++ 1 file changed, 5 insertions(+) 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