From 2222e6a9710377bfd5b6ec12e3f74f9d528cd263 Mon Sep 17 00:00:00 2001 From: Daniel Shapira Date: Mon, 5 Oct 2020 19:14:43 +0300 Subject: [PATCH] fix compiling on osx MSG_NOSIGNAL is not defined on OSX --- src/parser.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parser.h b/src/parser.h index 2f007af..211c502 100644 --- a/src/parser.h +++ b/src/parser.h @@ -14,6 +14,11 @@ #include #include +// fix compiling on OSX +#if defined(__APPLE__) + #define MSG_NOSIGNAL 0 +#endif + // Base command IDs per category. #define BASE_CMD_SYSTEM 0x0000 #define BASE_CMD_FILE 0x0100