From fff8fe91a9c5b4090738a2ddab106923425f6ca6 Mon Sep 17 00:00:00 2001 From: Andrea Odetti Date: Sun, 17 Oct 2021 09:21:08 +0100 Subject: [PATCH] Add some includes required by Apple clang. Signed-off-by: Andrea Odetti --- source/linux/network/uthernet2.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/linux/network/uthernet2.cpp b/source/linux/network/uthernet2.cpp index 0cf21fd8..bdfb2abb 100644 --- a/source/linux/network/uthernet2.cpp +++ b/source/linux/network/uthernet2.cpp @@ -2,10 +2,20 @@ #include "linux/network/uthernet2.h" #include +#include +#include #include #include #include +// fix SOCK_NONBLOCK for e.g. macOS +#ifndef SOCK_NONBLOCK +// DISCALIMER +// totally untested, use at your own risk +#include +#define SOCK_NONBLOCK O_NONBLOCK +#endif + #define MAX_RXLENGTH 1518 // #define U2_LOG_VERBOSE