summaryrefslogtreecommitdiff
path: root/dso
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2001-07-02 20:17:11 +0000
committerJeff Trawick <trawick@apache.org>2001-07-02 20:17:11 +0000
commita48a375475fa61aa3d8186e4da7d5022d449572e (patch)
tree0bcb84510280065781d7726f65511807b85c30ae /dso
parent2f09927d32ec65803b7784e6a6c0fa8c5d850581 (diff)
downloadapr-a48a375475fa61aa3d8186e4da7d5022d449572e.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: https://svn.apache.org/repos/asf/apr/apr/trunk@61859 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-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)