summaryrefslogtreecommitdiff
path: root/dso/unix/dso.c
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-07-02 20:17:11 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-07-02 20:17:11 +0000
commitee499e2450d3322c7d070d1d33ec2a4054cd4443 (patch)
tree0bcb84510280065781d7726f65511807b85c30ae /dso/unix/dso.c
parentdc366e6a4690e11dc3203652350643e810376839 (diff)
downloadlibapr-ee499e2450d3322c7d070d1d33ec2a4054cd4443.tar.gz
include stdlib.h for malloc() and free() prototypes (Darwin)
fix the DSO_USE_DYLD flavor of apr_dso_sym() so that it returns a predictable value on success (Darwin) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61859 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso/unix/dso.c')
-rw-r--r--dso/unix/dso.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dso/unix/dso.c b/dso/unix/dso.c
index ef9fc7773..726034c78 100644
--- a/dso/unix/dso.c
+++ b/dso/unix/dso.c
@@ -65,6 +65,9 @@
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif
+#if APR_HAVE_STDLIB_H
+#include <stdlib.h> /* malloc(), free() */
+#endif
#if APR_HAVE_STRING_H
#include <string.h> /* for strerror() on HP-UX */
#endif
@@ -205,7 +208,7 @@ APR_DECLARE(apr_status_t) apr_dso_sym(apr_dso_handle_sym_t *ressym,
handle->errormsg = "cannot resolve symbol";
return APR_EINIT;
}
-
+ return APR_SUCCESS;
#elif defined(DSO_USE_DLFCN)
#if defined(DLSYM_NEEDS_UNDERSCORE)