aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/nagios/nagios-nrpe/fix-compile-without-openssl.patch
blob: 1e57d02a91ab0b6996ae57d7c396fbb7a50eac07 (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
fix compile without openssl

Build with --disable-ssl causes the build to break with
this error:

error: unknown type name 'SSL'
 void complete_SSL_shutdown( SSL *);

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Rickard Engberg <rickard.engberg@windriver.com>
Signed-off-by: Vu Tran <vu.tran@windriver.com>

Index: nrpe-2.15/src/nrpe.c
===================================================================
--- nrpe-2.15.orig/src/nrpe.c	2013-09-06 17:27:13.000000000 +0200
+++ nrpe-2.15/src/nrpe.c	2013-11-20 23:22:49.546791020 +0100
@@ -99,9 +99,9 @@
 int     debug=FALSE;
 int     use_src=FALSE; /* Define parameter for SRC option */
 
-
+#ifdef HAVE_SSL
 void complete_SSL_shutdown( SSL *);
-
+#endif
 
 int main(int argc, char **argv){
 	int result=OK;
@@ -1796,6 +1796,7 @@
 	return OK;
         }
 
+#ifdef HAVE_SSL
 void complete_SSL_shutdown( SSL *ssl) {
 
 	/*  
@@ -1816,6 +1817,7 @@
 		if( SSL_shutdown( ssl)) break;
 	}
 }
+#endif
 
 /* bail if daemon is running as root */
 int check_privileges(void){