X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d664113aeed50a5d28a4f2235f226df62b8c2820..a015ef37330ddd44c9a2d820e1def6545d4dea8d:/uart/uart_posix.c 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