aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r--src/daemon/daemon.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index c5219f8c..6729c420 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -834,6 +834,10 @@ MHD_start_daemon_va (unsigned int options,
834 retVal->max_connections = MHD_MAX_CONNECTIONS_DEFAULT; 834 retVal->max_connections = MHD_MAX_CONNECTIONS_DEFAULT;
835 retVal->pool_size = MHD_POOL_SIZE_DEFAULT; 835 retVal->pool_size = MHD_POOL_SIZE_DEFAULT;
836 retVal->connection_timeout = 0; /* no timeout */ 836 retVal->connection_timeout = 0; /* no timeout */
837#if HAVE_MESSAGES
838 retVal->custom_error_log = (void(*)(void*,const char *,va_list)) &vfprintf;
839 retVal->custom_error_log_cls = stderr;
840#endif
837#if HTTPS_SUPPORT 841#if HTTPS_SUPPORT
838 if (options & MHD_USE_SSL) 842 if (options & MHD_USE_SSL)
839 { 843 {
@@ -892,6 +896,14 @@ MHD_start_daemon_va (unsigned int options,
892 va_arg (ap, const int *)); 896 va_arg (ap, const int *));
893 break; 897 break;
894#endif 898#endif
899 case MHD_OPTION_EXTERNAL_LOGGER:
900#if HAVE_MESSAGES
901 retVal->custom_error_log = va_arg(ap, void (*)(void*cls, const char *, va_list));
902 retVal->custom_error_log_cls = va_arg(ap, void *);
903#else
904 va_arg(ap, void (*)(void*cls, const char *,...));
905 va_arg(ap, void *);
906#endif
895 default: 907 default:
896#if HAVE_MESSAGES 908#if HAVE_MESSAGES
897 if ((opt >= MHD_OPTION_HTTPS_MEM_KEY) && 909 if ((opt >= MHD_OPTION_HTTPS_MEM_KEY) &&