summaryrefslogtreecommitdiff
path: root/parallel/sge/patches/patch-bl
blob: 402226f479ba73434dc1ea5f070ffa73484b7cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$NetBSD: patch-bl,v 1.2 2007/08/15 02:03:09 markd Exp $

--- source/libs/comm/cl_ssl_framework.c.orig	2006-07-17 20:25:05.000000000 +1200
+++ source/libs/comm/cl_ssl_framework.c
@@ -988,7 +988,7 @@ static int cl_com_ssl_build_symbol_table
    {
       char* func_name = NULL;
       int had_errors = 0;
-#if defined(FREEBSD)
+#if defined(FREEBSD) || defined(NETBSD)
       void* cl_com_ssl_crypto_handle_saved = NULL;
 #endif
 
@@ -1004,12 +1004,12 @@ static int cl_com_ssl_build_symbol_table
 
 #if defined(DARWIN)
 #ifdef RTLD_NODELETE
-      cl_com_ssl_crypto_handle = dlopen ("libssl.bundle", RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
+      cl_com_ssl_crypto_handle = dlopen ("libssl.dylib", RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
 #else
-      cl_com_ssl_crypto_handle = dlopen ("libssl.bundle", RTLD_NOW | RTLD_GLOBAL );
+      cl_com_ssl_crypto_handle = dlopen ("libssl.dylib", RTLD_NOW | RTLD_GLOBAL );
 #endif /* RTLD_NODELETE */
 
-#elif defined(FREEBSD)
+#elif defined(FREEBSD) || defined(NETBSD)
 #ifdef RTLD_NODELETE
       cl_com_ssl_crypto_handle = dlopen ("libssl.so", RTLD_LAZY | RTLD_GLOBAL | RTLD_NODELETE);
 #else
@@ -1038,7 +1038,7 @@ static int cl_com_ssl_build_symbol_table
          return CL_RETVAL_SSL_DLOPEN_SSL_LIB_FAILED;
       }
       
-#if defined(FREEBSD)
+#if defined(FREEBSD) || defined(NETBSD)
       cl_com_ssl_crypto_handle_saved = cl_com_ssl_crypto_handle;
       cl_com_ssl_crypto_handle = RTLD_DEFAULT;
 #endif
@@ -1661,7 +1661,7 @@ static int cl_com_ssl_build_symbol_table
          return CL_RETVAL_SSL_CANT_LOAD_ALL_FUNCTIONS;
       }
 
-#if defined(FREEBSD)
+#if defined(FREEBSD) || defined(NETBSD)
       cl_com_ssl_crypto_handle = cl_com_ssl_crypto_handle_saved;
 #endif