From: Bill Stoddard Date: Mon, 3 Apr 2000 20:41:14 +0000 (+0000) Subject: Get APR DSO code working under Windows X-Git-Tag: apache-doc-split-01~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e7ac8ac5f3b769a0f0c968259fb16b763a2f49f;p=thirdparty%2Fapache%2Fhttpd.git Get APR DSO code working under Windows git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84898 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_so.c b/modules/mappers/mod_so.c index 2e270e6b37f..04bf05e59a1 100644 --- a/modules/mappers/mod_so.c +++ b/modules/mappers/mod_so.c @@ -158,7 +158,7 @@ static void *so_sconf_create(ap_context_t *p, server_rec *s) soc->loaded_modules = ap_make_array(p, DYNAMIC_MODULE_LIMIT, sizeof(moduleinfo)); #ifndef NO_DLOPEN - ap_os_dso_init(); + ap_dso_init(); #endif return (void *)soc; diff --git a/os/win32/os.h b/os/win32/os.h index f57089e2241..dd9c08ae8e1 100644 --- a/os/win32/os.h +++ b/os/win32/os.h @@ -166,18 +166,7 @@ API_EXPORT(char *) ap_os_systemcase_filename(ap_context_t *pPool, const char *sz int ap_os_is_filename_valid(const char *file); int os_strftime(char *, size_t , const char *, const struct tm *); -/* Abstractions for dealing with shared object files (DLLs on Win32). - * These are used by mod_so.c - * ToDo: This need to be migrated to APR - */ - -#define ap_os_dso_handle_t HINSTANCE -#define ap_os_dso_init() -#define ap_os_dso_load(l) LoadLibraryEx(l, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) -#define ap_os_dso_unload(l) FreeLibrary(l) -#define ap_os_dso_sym(h,s) GetProcAddress(h,s) #define ap_os_dso_error() "" /* for now */ - /* Other ap_os_ routines not used by this platform */ #define ap_os_kill(pid, sig) kill(pid, sig)