From 3b45cf9f4d0ce3e84ee3eba3710d7aab13a16b05 Mon Sep 17 00:00:00 2001 From: Kristofer Hallin Date: Tue, 20 Aug 2024 09:19:06 +0200 Subject: [PATCH] Fixed: [Handle missing SOCK_NONBLOCK on MacOS](https://github.com/clicon/clixon/issues/540) --- apps/restconf/restconf_main_native.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/restconf/restconf_main_native.c b/apps/restconf/restconf_main_native.c index 385529cc..9da499ca 100644 --- a/apps/restconf/restconf_main_native.c +++ b/apps/restconf/restconf_main_native.c @@ -158,6 +158,11 @@ #include "restconf_http1.h" #endif +#ifndef SOCK_NONBLOCK +#include +#define SOCK_NONBLOCK O_NONBLOCK +#endif + /* Command line options to be passed to getopt(3) */ #define RESTCONF_OPTS "hVD:f:E:l:C:p:y:a:u:rW:R:t:o:"