libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 43ee3a30379f9d2db9f9b3331ca5f825a5aab2af
parent be86a916eb5e23d3d636f79e1a95a71f86d7610d
Author: ng0 <ng0@n0.is>
Date:   Mon, 29 Jul 2019 15:15:33 +0000

test for MGS_MORE existing, not its non-existince.

Diffstat:
Msrc/microhttpd/mhd_send.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -46,7 +46,8 @@ static void pre_cork_setsockopt (struct MHD_Connection *connection, bool want_cork) { -#ifndef MSG_MORE +#if MSG_MORE +#else int ret; const MHD_SCKT_OPT_BOOL_ off_val = 0; const MHD_SCKT_OPT_BOOL_ on_val = 1; @@ -98,7 +99,8 @@ static void post_cork_setsockopt (struct MHD_Connection *connection, bool want_cork) { -#ifndef MSG_MORE +#if MSG_MORE +#else int ret; const MHD_SCKT_OPT_BOOL_ off_val = 0; const MHD_SCKT_OPT_BOOL_ on_val = 1; @@ -131,7 +133,7 @@ post_cork_setsockopt (struct MHD_Connection *connection, connection->sk_cork_on = want_cork; } return; -#endif /* HAVE_MORE */ +#endif /* MSG_MORE */ } /**