]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
OK. This is admittedly anal. But the whole idea behind cpp macros
authorJim Jagielski <jim@apache.org>
Thu, 2 May 2002 13:28:46 +0000 (13:28 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 2 May 2002 13:28:46 +0000 (13:28 +0000)
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: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@94901 13f79535-47bb-0310-9956-ffa450edef68

src/os/unix/os.c

index 3142d982f748b7091a54a692959c573ce59fe2ef..3ee29642c497f67e44e8a3371866e251bcf5c635 100644 (file)
@@ -111,8 +111,10 @@ void *ap_os_dso_load(const char *path)
     if (NSCreateObjectFileImageFromFile(path, &image) !=
         NSObjectFileImageSuccess)
         return NULL;
-#if defined(NSLINKMODULE_OPTION_RETURN_ON_ERROR)
-    handle = NSLinkModule(image, path, NSLINKMODULE_OPTION_RETURN_ON_ERROR);
+#if defined(NSLINKMODULE_OPTION_RETURN_ON_ERROR) && defined(NSLINKMODULE_OPTION_NONE)
+    handle = NSLinkModule(image, path,
+                          NSLINKMODULE_OPTION_RETURN_ON_ERROR |
+                          NSLINKMODULE_OPTION_NONE);
 #else
     handle = NSLinkModule(image, path, FALSE);
 #endif