apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <scte...@covalent.net>
Subject [PATCH] Make DSO work on Darwin
Date Tue, 20 Nov 2001 07:46:15 GMT
We were not returning the pointer to the module structure that we just
pulled out of the DSO file. No wonder the module structure we tried to use
in mod_so.c:load_module was total garbage! The following patch fixes that
problem.

Index: dso.c
===================================================================
RCS file: /home/cvspublic/apr/dso/unix/dso.c,v
retrieving revision 1.44
diff -u -r1.44 dso.c
--- dso.c       2001/11/13 21:15:33     1.44
+++ dso.c       2001/11/20 07:21:02
@@ -209,6 +209,7 @@
         handle->errormsg = "cannot resolve symbol";
        return APR_EINIT;
     }
+    *ressym = retval;
     return APR_SUCCESS;
 #elif defined(DSO_USE_DLFCN)
 
Enjoy,

Sander

-- 
Covalent Technologies                             sctemme@covalent.net
Engineering group                                Voice: (415) 536 5214
645 Howard St.                                     Fax: (415) 536 5210
San Francisco CA 94105

   PGP Fingerprint: 1E74 4E58 DFAC 2CF5 6A03  5531 AFB1 96AF B584 0AB1

=======================================================
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message
=======================================================


Mime
View raw message