]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Get DSOs working on Windows. Required cross platform change to mod_so.c.
authorBill Stoddard <stoddard@apache.org>
Wed, 5 Apr 2000 15:45:33 +0000 (15:45 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 5 Apr 2000 15:45:33 +0000 (15:45 +0000)
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

modules/mappers/mod_so.c

index 04bf05e59a1465fe1f37069d04826c8882aa62b7..bf909abbbb3d20719d0840dc468e7b0d8a290220 100644 (file)
@@ -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