[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 118/154: Add MSG_MORE detection.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 118/154: Add MSG_MORE detection. |
Date: |
Mon, 19 Aug 2019 10:17:10 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libmicrohttpd.
commit 5b83823ef36d4fe43094dd72969adf0fc68d7e64
Author: ng0 <address@hidden>
AuthorDate: Tue Jul 30 08:31:41 2019 +0000
Add MSG_MORE detection.
---
configure.ac | 21 +++++++++++++++++++++
src/microhttpd/mhd_send.c | 6 +++---
2 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 49bcd624..4d6e263c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -644,9 +644,30 @@ AM_CONDITIONAL([HAVE_LISTEN_SHUTDOWN], [test
"x$mhd_cv_host_shtdwn_trgr_select"
# SENDMSG. Should we check for SCM_RIGHTS instead?
# https://lists.x.org/archives/xorg-devel/2013-November/038687.html
+AC_MSG_CHECKING([whether sendmsg is available])
AC_SEARCH_LIBS(sendmsg, socket, AC_DEFINE([HAVE_SENDMSG],1,[Define if your
platform supports sendmsg]))
+AC_MSG_CHECKING([whether writev is available])
AC_CHECK_FUNCS([writev])
+# check MSG_MORE defined
+AC_MSG_CHECKING([whether MSG_MORE defined])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
+#include <sys/types.h>
+#include <sys/socket.h>
+
+int main(int argc, char **argv)
+{
+ return MSG_MORE;
+}
+ ])],
+ [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_MSG_MORE, [1], [have MSG_MORE])
+ ],
+ [
+ AC_MSG_RESULT(no)
+ ])
+
# set GCC options
# use '-fno-strict-aliasing', but only if the compiler
# and linker can take it
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 6637d2d2..8eec8234 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -21,7 +21,7 @@
/**
* @file microhttpd/mhd_send.c
* @brief Implementation of send() wrappers.
- * @author ng0 <address@hidden>
+ * @author ng0 (N. Gillmann)
* @author Christian Grothoff
* @author Evgeny Grin
*/
@@ -48,7 +48,7 @@ static void
pre_cork_setsockopt (struct MHD_Connection *connection,
bool want_cork)
{
-#if MSG_MORE
+#if HAVE_MSG_MORE
#else
int ret;
const MHD_SCKT_OPT_BOOL_ off_val = 0;
@@ -101,7 +101,7 @@ static void
post_cork_setsockopt (struct MHD_Connection *connection,
bool want_cork)
{
-#if MSG_MORE
+#if HAVE_MSG_MORE
#else
int ret;
const MHD_SCKT_OPT_BOOL_ off_val = 0;
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] 92/154: simplify, (continued)
- [GNUnet-SVN] [libmicrohttpd] 92/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 103/154: test, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 93/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 107/154: test for MGS_MORE existing, not its non-existince., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 76/154: indent, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 101/154: don't cast, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 87/154: remove code, add prototype to mhd_send.h, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 117/154: ., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 125/154: Merge remote-tracking branch 'origin/master' into dev/ng0/gsoc2019, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 129/154: swap _NODELAY and _NOPUSH, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 118/154: Add MSG_MORE detection.,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 123/154: fix behavior on NetBSD, use the right sizeof., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 106/154: switch post/pre function definition to a logical appearance in the file (pre before post), purely for orientation., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 110/154: check before post_ function if we need to set want_cork to false, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 96/154: simplify, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 113/154: _len -> _size, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 147/154: Merge remote-tracking branch 'origin/master' into dev/ng0/gsoc2019, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 149/154: connection.c: remove 2 more calls of dead code., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 122/154: partial fix to sendmsg code, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 134/154: handle TLS case in send_on_connectin2, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 128/154: TCP_NOPUSH, gnunet, 2019/08/19