diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-06-01 01:01:16 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-06-01 01:01:16 +0000 |
commit | aa2b9e1841aab6335673d80292423b1971149243 (patch) | |
tree | f1f17de04ca92795060b4165adbd69d4b48cc5fa /dso/beos | |
parent | 4ae6295dae9e35054f9ff1745d6850d7612a3c71 (diff) | |
download | libapr-aa2b9e1841aab6335673d80292423b1971149243.tar.gz |
Fix building with DSO support. If any module is configured to be
compiled for shared support then APR_HAS_DSO is enabled and -ldl is
added to the LIBS variable. -ldl may need to be modified based on
platform. If no modules are designated as shared then APR_HAS_DSO is
disabled and nothing is added to LIBS. In basic testing this compiled
without errors or warnings.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60122 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/beos')
-rw-r--r-- | dso/beos/dso.c | 3 | ||||
-rw-r--r-- | dso/beos/dso.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/dso/beos/dso.c b/dso/beos/dso.c index c63102739..acb05b58f 100644 --- a/dso/beos/dso.c +++ b/dso/beos/dso.c @@ -54,6 +54,7 @@ #include "dso.h" +#if APR_HAS_DSO ap_status_t ap_dso_init(void){ return APR_SUCCESS; @@ -97,3 +98,5 @@ ap_status_t ap_dso_sym(ap_dso_handle_sym_t *ressym, ap_dso_handle_t *handle, return APR_SUCCESS; } + +#endif diff --git a/dso/beos/dso.h b/dso/beos/dso.h index 2666d779a..27e35f87e 100644 --- a/dso/beos/dso.h +++ b/dso/beos/dso.h @@ -60,11 +60,16 @@ #include "apr_pools.h" #include "apr_errno.h" #include "apr_dso.h" +#include "apr.h" #include <kernel/image.h> +#if APR_HAS_DSO + struct ap_dso_handle_t { image_id handle; /* Handle to the DSO loaded */ ap_pool_t *cont; }; #endif + +#endif |