libmicrohttpd

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

commit 16e9746859840da3a8d8f3f00172dd8bdf8d72d5
parent 9407787c06a72ba99123e2cac6d0916655fdb2a4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu, 18 Dec 2014 21:39:33 +0000

fix building with --disable-messages

Diffstat:
Msrc/microhttpd/daemon.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -3585,11 +3585,13 @@ MHD_start_daemon_va (unsigned int flags, SOL_SOCKET, SO_REUSEADDR, (void*)&on, sizeof (on))) + { #if HAVE_MESSAGES MHD_DLOG (daemon, "setsockopt failed: %s\n", MHD_socket_last_strerr_ ()); #endif + } } else if (daemon->listening_address_reuse > 0) { @@ -3726,11 +3728,13 @@ MHD_start_daemon_va (unsigned int flags, if (0 > setsockopt (socket_fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof (on))) + { #if HAVE_MESSAGES MHD_DLOG (daemon, "setsockopt failed: %s\n", MHD_socket_last_strerr_ ()); #endif + } #endif #endif }