$NetBSD: patch-am,v 1.1.1.1 2006/12/15 09:03:47 adam Exp $
--- CommonUtilitiesLib/OSCodeFragment.cpp.orig  2003-08-16 01:52:52.000000000 +0200
+++ CommonUtilitiesLib/OSCodeFragment.cpp	2005-02-25 17:03:31.000000000 +0100
@@ -62,6 +62,8 @@
     fFragmentP = dlopen((char *)inPath, RTLD_NOW | RTLD_GLOBAL);
 #elif defined(__FreeBSD__)
     fFragmentP = dlopen(inPath, RTLD_NOW);
+#elif defined(__NetBSD__) || defined(__DragonFly__)
+    fFragmentP = dlopen(inPath, RTLD_LAZY);
 #elif defined(__sgi__) 
     fFragmentP = dlopen(inPath, RTLD_NOW); // not sure this should be either RTLD_NOW or RTLD_LAZY
 #elif defined(__Win32__)
