diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-04-19 14:24:14 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-04-19 14:24:14 +0000 |
commit | 117aa0d59283b4631bb08d4f90338dfe898ade4b (patch) | |
tree | 78309a70f0bde6ade00650399a49b71b63015923 /dso/unix/dso.c | |
parent | d1fba08652247c8614c8a48233f769e0448d2120 (diff) | |
download | libapr-117aa0d59283b4631bb08d4f90338dfe898ade4b.tar.gz |
implement apr_os_dso_handle_get|put() so that Apache builds again;
Apache's exports.c reflected that the prototypes were added but the
function wasn't actually implemented
more implementations forthcoming as people figure out they can't
link...
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61537 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/unix/dso.c')
-rw-r--r-- | dso/unix/dso.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/dso/unix/dso.c b/dso/unix/dso.c index cad0a08fc..985f57fc5 100644 --- a/dso/unix/dso.c +++ b/dso/unix/dso.c @@ -54,6 +54,7 @@ #include "dso.h" #include "apr_strings.h" +#include "apr_portable.h" #if APR_HAS_DSO @@ -68,6 +69,22 @@ #include <string.h> /* for strerror() on HP-UX */ #endif +APR_DECLARE(apr_status_t) apr_os_dso_handle_put(apr_dso_handle_t **aprdso, + apr_os_dso_handle_t *osdso, + apr_pool_t *pool) +{ + *aprdso = apr_pcalloc(pool, sizeof **aprdso); + (*aprdso)->handle = *osdso; + return APR_SUCCESS; +} + +APR_DECLARE(apr_status_t) apr_os_dso_handle_get(apr_os_dso_handle_t *osdso, + apr_dso_handle_t *aprdso) +{ + *osdso = aprdso->handle; + return APR_SUCCESS; +} + static apr_status_t dso_cleanup(void *thedso) { apr_dso_handle_t *dso = thedso; |