summaryrefslogtreecommitdiff
path: root/dso/unix
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-01-12 04:50:31 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-01-12 04:50:31 +0000
commit98a31028f1bc06c95d9dc780d5a6103fe1c69026 (patch)
tree9443fdabc7fee95cc6937dfffb48552aef963bf1 /dso/unix
parent0c75ae7bb5f7329c3aaea91c25aa2aff5403965f (diff)
downloadlibapr-98a31028f1bc06c95d9dc780d5a6103fe1c69026.tar.gz
Add linkage declarations to the DSO functions.
Submitted by: Gregory Nicholls <gnicholls@level8.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61055 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/unix')
-rw-r--r--dso/unix/dso.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/dso/unix/dso.c b/dso/unix/dso.c
index 6741449ab..154a11fb0 100644
--- a/dso/unix/dso.c
+++ b/dso/unix/dso.c
@@ -61,8 +61,8 @@
#include <stddef.h>
#endif
-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)
{
#if defined(HPUX) || defined(HPUX10) || defined(HPUX11)
shl_t os_handle = shl_load(path, BIND_IMMEDIATE|BIND_VERBOSE|BIND_NOSTART, 0L);
@@ -91,7 +91,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 defined(HPUX) || defined(HPUX10) || defined(HPUX11)
shl_unload((shl_t)handle->handle);
@@ -104,9 +104,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)
{
#if defined(HPUX) || defined(HPUX10) || defined(HPUX11)
void *symaddr = NULL;
@@ -146,7 +146,7 @@ apr_status_t apr_dso_sym(apr_dso_handle_sym_t *ressym,
#endif /* not HP-UX; use dlsym()/dlerror() */
}
-const char *apr_dso_error(apr_dso_handle_t *dso, char *buffer, apr_size_t buflen)
+APR_DECLARE(const char *) apr_dso_error(apr_dso_handle_t *dso, char *buffer, apr_size_t buflen)
{
if (dso->errormsg) {
apr_cpystrn(buffer, dso->errormsg, buflen);