summaryrefslogtreecommitdiff
path: root/dso
diff options
context:
space:
mode:
authorjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2002-05-02 13:28:24 +0000
committerjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2002-05-02 13:28:24 +0000
commit5ed8472694c07528c184c4eb8cd123a771467d41 (patch)
treed3afa2c21e566024793636c24d67fa81dc97f6de /dso
parent59f9e4498e3c28943953e27a014f1f9a50b48ec7 (diff)
downloadlibapr-5ed8472694c07528c184c4eb8cd123a771467d41.tar.gz
OK. This is admittedly anal. But the whole idea behind cpp macros
is to avoid things like "we know NSLINKMODULE_OPTION_NONE is 0" and making such shortcuts as this. This makes it clear what exactly we are setting, and though admittedly verbose, the tradeoff of a few bytes of source is worth it :) PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63347 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r--dso/unix/dso.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dso/unix/dso.c b/dso/unix/dso.c
index bb3d0b685..a6d3860e2 100644
--- a/dso/unix/dso.c
+++ b/dso/unix/dso.c
@@ -126,9 +126,10 @@ APR_DECLARE(apr_status_t) apr_dso_load(apr_dso_handle_t **res_handle,
NSModule os_handle = NULL;
char* err_msg = NULL;
if (NSCreateObjectFileImageFromFile(path, &image) == NSObjectFileImageSuccess) {
-#if defined(NSLINKMODULE_OPTION_RETURN_ON_ERROR)
+#if defined(NSLINKMODULE_OPTION_RETURN_ON_ERROR) && defined(NSLINKMODULE_OPTION_NONE)
os_handle = NSLinkModule(image, path,
- NSLINKMODULE_OPTION_RETURN_ON_ERROR);
+ NSLINKMODULE_OPTION_RETURN_ON_ERROR |
+ NSLINKMODULE_OPTION_NONE);
#else
os_handle = NSLinkModule(image, path, FALSE);
#endif