libmicrohttpd

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

commit 7056c9e811352498bba2765a4c47893906a2bc19
parent f862cd4954d45b35fd3cacb4ef8c519f10014177
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 28 Jul 2013 14:41:40 +0000

-fix #2968

Diffstat:
MChangeLog | 4++++
Msrc/microhttpd/daemon.c | 2++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,7 @@ +Sun Jul 28 16:35:17 CEST 2013 + Fixing build issue (missing #ifdef) in conjunction with + --disable-messages. -blueness + Sat Jul 20 12:35:40 CEST 2013 Fixing combination of MHD_USE_SSL and MHD_USE_EPOLL_LINUX_ONLY. -CG diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -3119,9 +3119,11 @@ MHD_start_daemon_va (unsigned int flags, int sk_flags = fcntl (socket_fd, F_GETFL); if (0 != fcntl (socket_fd, F_SETFL, sk_flags | O_NONBLOCK)) { +#if HAVE_MESSAGES MHD_DLOG (daemon, "Failed to make listen socket non-blocking: %s\n", STRERROR (errno)); +#endif if (0 != CLOSE (socket_fd)) MHD_PANIC ("close failed\n"); goto free_and_fail;