]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
http: The MSG_MORE flag is not available on FreeBSD or Darwin.
authormacrule <562520+macrule@users.noreply.github.com>
Wed, 29 Nov 2017 17:18:53 +0000 (18:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 29 Nov 2017 19:55:06 +0000 (20:55 +0100)
Added a compatibility definition in compat.h.

src/compat.h
src/http.c

index cd123b0cb2a0338007a53092d09e56f20bd84dcd..142e23a2e777b65ea5920b8e9f96c8be8e9d2f97 100644 (file)
 #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
index a298ba776562a3e5a4447d9d5937cff92c1d5696..b6ef09bd59659194729b3d67ba833cfb07d07625 100644 (file)
@@ -40,6 +40,7 @@
 #include "channels.h"
 #include "config.h"
 #include "htsmsg_json.h"
+#include "compat.h"
 
 #if ENABLE_ANDROID
 #include <sys/socket.h>