diff options
| author | 2002-07-19 21:31:13 +0000 | |
|---|---|---|
| committer | 2002-07-19 21:31:13 +0000 | |
| commit | be6a927fc87407e752b7d4f36b40e16c41f2bd82 (patch) | |
| tree | 7cda90b76322bfafc5ff3780280ec896265b6977 /usr.sbin/httpd/src/os/unix/os.c | |
| parent | import apache 1.3.26 + mod_ssl 2.8.10 (diff) | |
| download | wireguard-openbsd-be6a927fc87407e752b7d4f36b40e16c41f2bd82.tar.xz wireguard-openbsd-be6a927fc87407e752b7d4f36b40e16c41f2bd82.zip | |
merge
Diffstat (limited to 'usr.sbin/httpd/src/os/unix/os.c')
| -rw-r--r-- | usr.sbin/httpd/src/os/unix/os.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/httpd/src/os/unix/os.c b/usr.sbin/httpd/src/os/unix/os.c index afccc315a98..3ee29642c49 100644 --- a/usr.sbin/httpd/src/os/unix/os.c +++ b/usr.sbin/httpd/src/os/unix/os.c @@ -111,7 +111,13 @@ void *ap_os_dso_load(const char *path) if (NSCreateObjectFileImageFromFile(path, &image) != NSObjectFileImageSuccess) return NULL; - handle = NSLinkModule(image, path, TRUE); +#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 NSDestroyObjectFileImage(image); return handle; |
