From 2d42461d937ddcd11804938d4edd083cc8370c94 Mon Sep 17 00:00:00 2001 From: macrule <562520+macrule@users.noreply.github.com> Date: Wed, 29 Nov 2017 18:18:53 +0100 Subject: [PATCH] http: The MSG_MORE flag is not available on FreeBSD or Darwin. Added a compatibility definition in compat.h. --- src/compat.h | 4 ++++ src/http.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/compat.h b/src/compat.h index cd123b0cb..142e23a2e 100644 --- a/src/compat.h +++ b/src/compat.h @@ -39,6 +39,10 @@ #define inotify_init1(IN_CLOEXEC) inotify_init() #endif +#if (defined(PLATFORM_DARWIN) || defined(PLATFORM_FREEBSD)) && !defined(MSG_MORE) +#define MSG_MORE 0 +#endif + #endif /* TVH_COMPAT_H */ #ifdef COMPAT_IPTOS diff --git a/src/http.c b/src/http.c index a298ba776..b6ef09bd5 100644 --- a/src/http.c +++ b/src/http.c @@ -40,6 +40,7 @@ #include "channels.h" #include "config.h" #include "htsmsg_json.h" +#include "compat.h" #if ENABLE_ANDROID #include -- 2.47.3