diff options
author | Jeff Trawick <trawick@apache.org> | 2001-07-02 20:17:11 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2001-07-02 20:17:11 +0000 |
commit | a48a375475fa61aa3d8186e4da7d5022d449572e (patch) | |
tree | 0bcb84510280065781d7726f65511807b85c30ae /dso | |
parent | 2f09927d32ec65803b7784e6a6c0fa8c5d850581 (diff) | |
download | apr-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.c | 5 |
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) |