From: Bill Stoddard Date: Wed, 5 Apr 2000 15:45:33 +0000 (+0000) Subject: Get DSOs working on Windows. Required cross platform change to mod_so.c. X-Git-Tag: apache-doc-split-01~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca0f151736d719d9f188a7a3213c7f5ab57158e0;p=thirdparty%2Fapache%2Fhttpd.git Get DSOs working on Windows. Required cross platform change to mod_so.c. Tim tested on Windows. Not tested on other platforms. Submitted by: Tim Costello Reviewed by: Bill Stoddard git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84920 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_so.c b/modules/mappers/mod_so.c index 04bf05e59a1..bf909abbbb3 100644 --- a/modules/mappers/mod_so.c +++ b/modules/mappers/mod_so.c @@ -222,7 +222,7 @@ static const char *load_module(cmd_parms *cmd, void *dummy, { ap_status_t stat; ap_dso_handle_t *modhandle; - ap_dso_handle_sym_t *modsym; + ap_dso_handle_sym_t modsym; module *modp; const char *szModuleFile=ap_server_root_relative(cmd->pool, filename); so_server_conf *sconf; @@ -263,12 +263,13 @@ static const char *load_module(cmd_parms *cmd, void *dummy, * First with the hidden variant (prefix `AP_') and then with the plain * symbol name. */ - if ((stat = ap_dso_sym(modsym, modhandle, modname)) != APR_SUCCESS) { + if ((stat = ap_dso_sym(&modsym, modhandle, modname)) != APR_SUCCESS) { return ap_pstrcat(cmd->pool, "Can't locate API module structure `", modname, "' in file ", szModuleFile, ": ", ap_os_dso_error(), NULL); } - modi->modp = (module *)modsym; + modp = (module*) modsym; modp->dynamic_load_handle = (ap_dso_handle_t *)modhandle; + modi->modp = modp; /* * Make sure the found module structure is really a module structure