Set DLOPEN_FLAG the same way on NetBSD as on OpenBSD.
[openssl.git] / crypto / dso / dso_dlfcn.c
index 1a19164d3b1b0474a1497ee5cd8d809045580eb1..906b4703de71c4f42a210f8706b17a86118cfb83 100644 (file)
@@ -114,7 +114,7 @@ DSO_METHOD *DSO_METHOD_dlfcn(void)
  * as we don't have autoconf yet, I'm implementing a hack that could
  * be hacked further relatively easily to deal with cases as we find
  * them. Initially this is to cope with OpenBSD. */
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__NetBSD__)
 #      ifdef DL_LAZY
 #              define DLOPEN_FLAG DL_LAZY
 #      else