Set DLOPEN_FLAG the same way on NetBSD as on OpenBSD.
authorRichard Levitte <levitte@openssl.org>
Wed, 29 May 2002 21:00:08 +0000 (21:00 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 29 May 2002 21:00:08 +0000 (21:00 +0000)
PR: 58, submitted by andrew@cis.uoguelph.ca

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. */
  * 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
 #      ifdef DL_LAZY
 #              define DLOPEN_FLAG DL_LAZY
 #      else