From affbae1c47d66942ee83a31c699c579cee694fc2 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 6 Mar 2010 10:27:39 +0100 Subject: [PATCH] Make evbase_httpd non-static Make the httpd event base available to httpd protocol handlers. --- src/httpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/httpd.c b/src/httpd.c index b2b5d955..5f811c49 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -112,13 +112,14 @@ static struct content_type_map ext2ctype[] = { NULL, NULL } }; +struct event_base *evbase_httpd; + #ifdef USE_EVENTFD static int exit_efd; #else static int exit_pipe[2]; #endif static int httpd_exit; -static struct event_base *evbase_httpd; static struct event exitev; static struct evhttp *evhttpd; static pthread_t tid_httpd;