$NetBSD: patch-aa,v 1.5 2000/04/13 09:51:23 tron Exp $

--- functions/dl.c.orig	Thu Mar 30 03:22:37 2000
+++ functions/dl.c	Thu Apr 13 11:48:07 2000
@@ -120,7 +120,11 @@
 #endif
 		RETURN_FALSE;
 	}
+#ifdef __ELF__
 	get_module = (php3_module_entry *(*)(void)) dlsym(handle, "get_module");
+#else
+	get_module = (php3_module_entry *(*)(void)) dlsym(handle, "_get_module");
+#endif
 	
 	if (!get_module)
 		get_module = (php3_module_entry *(*)(void)) dlsym(handle, "_get_module");
