summaryrefslogtreecommitdiffstats
path: root/crypto/dso/dso_dlfcn.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-06-12 02:51:54 +0200
committerRichard Levitte <levitte@openssl.org>2003-06-12 02:51:54 +0200
commit54bbde3c3fb5ba9596245bbd8f7490136b6cc10d (patch)
tree67d2b20e39f32d310d2c1dca497e48e6c6899683 /crypto/dso/dso_dlfcn.c
parentTypo. (diff)
downloadopenssl-54bbde3c3fb5ba9596245bbd8f7490136b6cc10d.tar.xz
openssl-54bbde3c3fb5ba9596245bbd8f7490136b6cc10d.zip
Make sure DSO-dlfcn works properly on SunOS4.
PR: 585
Diffstat (limited to 'crypto/dso/dso_dlfcn.c')
-rw-r--r--crypto/dso/dso_dlfcn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/dso/dso_dlfcn.c b/crypto/dso/dso_dlfcn.c
index 259aee83e7..2d7534afac 100644
--- a/crypto/dso/dso_dlfcn.c
+++ b/crypto/dso/dso_dlfcn.c
@@ -128,7 +128,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;