$NetBSD: patch-ag,v 1.7.16.1 2004/12/01 00:25:56 salo Exp $

--- src/os/unix/os.c.orig	2004-02-20 21:01:04.000000000 +0000
+++ src/os/unix/os.c
@@ -153,7 +153,12 @@ void ap_os_dso_unload(void *handle)
 #elif defined(HAVE_DYLD)
     NSUnLinkModule(handle,FALSE);
 
-#else
+/*
+ * Work around Apache dlclose() bug, where shared objects may be
+ * dlclose()d before their cleanup procedures are called.
+ * This is needed so shared modules can be used. 
+ */
+#elif 0
     dlclose(handle);
 #endif
 
