From dab516d3e72360a10962d37a06df6aee33b1a63f Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 21 Mar 2006 07:08:08 +0000 Subject: r14603: Fix building of ejs modules as shared libs Fix calling of ejs_exception() without requiring --export-dynamic (This used to be commit 8575e9a4903450aae1f29f55aae516085a9528bb) --- source4/web_server/http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/web_server') diff --git a/source4/web_server/http.c b/source4/web_server/http.c index 3df9fcb25a..93d81ef1d0 100644 --- a/source4/web_server/http.c +++ b/source4/web_server/http.c @@ -467,7 +467,7 @@ static void http_setup_arrays(struct esp_state *esp) static jmp_buf ejs_exception_buf; static const char *exception_reason; -_PUBLIC_ void ejs_exception(const char *reason) +static void web_server_ejs_exception(const char *reason) { Ejs *ep = ejsPtr(0); if (ep) { @@ -480,7 +480,7 @@ _PUBLIC_ void ejs_exception(const char *reason) longjmp(ejs_exception_buf, -1); } #else -void ejs_exception(const char *reason) +static void web_server_ejs_exception(const char *reason) { DEBUG(0,("%s", reason)); smb_panic(reason); @@ -804,7 +804,7 @@ void http_process_input(struct websrv_context *web) edata->application_data, MPR_DEEP_COPY); } - smb_setup_ejs_functions(); + smb_setup_ejs_functions(web_server_ejs_exception); if (web->input.url == NULL) { http_error(web, 400, "You must specify a GET or POST request"); -- cgit