libmicrohttpd

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

commit ba88f0d73373d4a6dedb23b07415a4dac976fbf8
parent 4d264fe823115ae9fb2aaacccf63662c2ed88611
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 22 Dec 2014 19:41:51 +0000

daemon.c: Fix macro check with HAVE_ACCEPT4 == 0 in MHD_accept_connection()

Diffstat:
Msrc/microhttpd/daemon.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -1841,7 +1841,7 @@ MHD_accept_connection (struct MHD_Daemon *daemon) } return MHD_NO; } -#if !defined(HAVE_ACCEPT4) || !defined(HAVE_SOCK_NONBLOCK) || SOCK_CLOEXEC+0 == 0 +#if !defined(HAVE_ACCEPT4) || HAVE_ACCEPT4+0 == 0 || !defined(HAVE_SOCK_NONBLOCK) || SOCK_CLOEXEC+0 == 0 make_nonblocking_noninheritable (daemon, s); #endif #if HAVE_MESSAGES