Make sure DSO-dlfcn works properly on SunOS4.
authorRichard Levitte <levitte@openssl.org>
Thu, 12 Jun 2003 00:51:57 +0000 (00:51 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 12 Jun 2003 00:51:57 +0000 (00:51 +0000)
PR: 585

crypto/dso/dso_dlfcn.c

index acf09f5a08693ebd4b6c97b341ea040330413f99..1e38e8777358eb05d51fd0105e17ff0c52660ae3 100644 (file)
@@ -123,7 +123,11 @@ DSO_METHOD *DSO_METHOD_dlfcn(void)
 #              endif
 #      endif
 #else
-#      define DLOPEN_FLAG RTLD_NOW /* Hope this works everywhere else */
+#      ifdef OPENSSL_SYS_SUNOS
+#              define DLOPEN_FLAG 1
+#      else
+#              define DLOPEN_FLAG RTLD_NOW /* Hope this works everywhere else */
+#      endif
 #endif
 
 /* For this DSO_METHOD, our meth_data STACK will contain;