Fixed: [Handle missing SOCK_NONBLOCK on MacOS](https://github.com/clicon/clixon/issues/540)

This commit is contained in:
Kristofer Hallin 2024-08-20 09:19:06 +02:00 committed by Olof Hagsand
parent d6622772bf
commit 3b45cf9f4d

View file

@ -158,6 +158,11 @@
#include "restconf_http1.h" #include "restconf_http1.h"
#endif #endif
#ifndef SOCK_NONBLOCK
#include <fcntl.h>
#define SOCK_NONBLOCK O_NONBLOCK
#endif
/* Command line options to be passed to getopt(3) */ /* 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:" #define RESTCONF_OPTS "hVD:f:E:l:C:p:y:a:u:rW:R:t:o:"