From: macrule <562520+macrule@users.noreply.github.com> Date: Wed, 29 Nov 2017 17:18:53 +0000 (+0100) Subject: http: The MSG_MORE flag is not available on FreeBSD or Darwin. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d42461d937ddcd11804938d4edd083cc8370c94;p=thirdparty%2Ftvheadend.git http: The MSG_MORE flag is not available on FreeBSD or Darwin. Added a compatibility definition in compat.h. --- 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