summaryrefslogtreecommitdiff
path: root/dso/aix
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-01-12 04:50:31 +0000
committerRyan Bloom <rbb@apache.org>2001-01-12 04:50:31 +0000
commitb74c4e5eefe4caacfdb1b75730c3d90a320944cd (patch)
tree9443fdabc7fee95cc6937dfffb48552aef963bf1 /dso/aix
parent4cdb3af343f75bfeb54c309b247d5cff06679947 (diff)
downloadapr-b74c4e5eefe4caacfdb1b75730c3d90a320944cd.tar.gz
Add linkage declarations to the DSO functions.
Submitted by: Gregory Nicholls <gnicholls@level8.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61055 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/aix')
-rw-r--r--dso/aix/dso.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dso/aix/dso.c b/dso/aix/dso.c
index 4b10f1fe3..cd63af0b1 100644
--- a/dso/aix/dso.c
+++ b/dso/aix/dso.c
@@ -132,8 +132,8 @@ struct dl_info {
* add the basic "wrappers" here.
*/
-apr_status_t apr_dso_load(apr_dso_handle_t **res_handle, const char *path,
- apr_pool_t *ctx)
+APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle,
+ const char *path, apr_pool_t *ctx)
{
void *os_handle = dlopen((char *)path, RTLD_NOW | RTLD_GLOBAL);
@@ -146,7 +146,7 @@ apr_status_t apr_dso_load(apr_dso_handle_t **res_handle, const char *path,
return APR_SUCCESS;
}
-apr_status_t apr_dso_unload(apr_dso_handle_t *handle)
+APR_DECLARE(apr_status_t) apr_dso_unload(apr_dso_handle_t *handle)
{
if (dlclose(handle->handle) != 0)
return APR_EINIT;
@@ -154,9 +154,9 @@ apr_status_t apr_dso_unload(apr_dso_handle_t *handle)
return APR_SUCCESS;
}
-apr_status_t apr_dso_sym(apr_dso_handle_sym_t *ressym,
- apr_dso_handle_t *handle,
- const char *symname)
+APR_DECLARE(apr_status_t) apr_dso_sym(apr_dso_handle_sym_t *ressym,
+ apr_dso_handle_t *handle,
+ const char *symname)
{
void *retval = dlsym(handle->handle, symname);