]> 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>
Sun, 10 Dec 2017 15:16:18 +0000 (16:16 +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 100cbe43d8a5d1e0e15fb04f5ea5b3efd1535b93..1573e4e2ac8d2b2377ea5c7b7644beeaed55af01 100644 (file)
@@ -39,6 +39,7 @@
 #include "notify.h"
 #include "channels.h"
 #include "config.h"
+#include "compat.h"
 
 #if ENABLE_ANDROID
 #include <sys/socket.h>