aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_send.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-07-29 15:15:33 +0000
committerng0 <ng0@n0.is>2019-07-29 15:15:33 +0000
commit43ee3a30379f9d2db9f9b3331ca5f825a5aab2af (patch)
treebbce2534088736f210b2bfbf04d691ff6536b867 /src/microhttpd/mhd_send.c
parentbe86a916eb5e23d3d636f79e1a95a71f86d7610d (diff)
downloadlibmicrohttpd-43ee3a30379f9d2db9f9b3331ca5f825a5aab2af.tar.gz
libmicrohttpd-43ee3a30379f9d2db9f9b3331ca5f825a5aab2af.zip
test for MGS_MORE existing, not its non-existince.
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r--src/microhttpd/mhd_send.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 442a5373..412a296c 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -46,7 +46,8 @@ static void
46pre_cork_setsockopt (struct MHD_Connection *connection, 46pre_cork_setsockopt (struct MHD_Connection *connection,
47 bool want_cork) 47 bool want_cork)
48{ 48{
49#ifndef MSG_MORE 49#if MSG_MORE
50#else
50 int ret; 51 int ret;
51 const MHD_SCKT_OPT_BOOL_ off_val = 0; 52 const MHD_SCKT_OPT_BOOL_ off_val = 0;
52 const MHD_SCKT_OPT_BOOL_ on_val = 1; 53 const MHD_SCKT_OPT_BOOL_ on_val = 1;
@@ -98,7 +99,8 @@ static void
98post_cork_setsockopt (struct MHD_Connection *connection, 99post_cork_setsockopt (struct MHD_Connection *connection,
99 bool want_cork) 100 bool want_cork)
100{ 101{
101#ifndef MSG_MORE 102#if MSG_MORE
103#else
102 int ret; 104 int ret;
103 const MHD_SCKT_OPT_BOOL_ off_val = 0; 105 const MHD_SCKT_OPT_BOOL_ off_val = 0;
104 const MHD_SCKT_OPT_BOOL_ on_val = 1; 106 const MHD_SCKT_OPT_BOOL_ on_val = 1;
@@ -131,7 +133,7 @@ post_cork_setsockopt (struct MHD_Connection *connection,
131 connection->sk_cork_on = want_cork; 133 connection->sk_cork_on = want_cork;
132 } 134 }
133 return; 135 return;
134#endif /* HAVE_MORE */ 136#endif /* MSG_MORE */
135} 137}
136 138
137/** 139/**