aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/rpm-mongodb-sasl.patch
blob: 6c3e4718b95a89e4e16b17616feaa6b1166e5cd1 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Fix errors when building with sasl2 disabled

Upstream-Status: Submitted [RPM5 maintainer]

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>

Index: rpm/rpmio/mongoc.c
===================================================================
--- rpm.orig/rpmio/mongoc.c
+++ rpm/rpmio/mongoc.c
@@ -39,8 +39,10 @@
 # include <winerror.h>
 #endif
 
+#ifdef HAVE_LIBSASL2
 #include <sasl/sasl.h>
 #include <sasl/saslutil.h>
+#endif
 
 #include <openssl/bio.h>
 #include <openssl/ssl.h>
@@ -14228,6 +14230,7 @@ mongoc_read_prefs_copy (const mongoc_rea
    return ret;
 }
 
+#ifdef MONGOC_ENABLE_SASL
 /*==============================================================*/
 /* --- mongoc-sasl.c */
 
@@ -14555,6 +14558,7 @@ _mongoc_sasl_step (mongoc_sasl_t *sasl,
 
    return true;
 }
+#endif
 
 /*==============================================================*/
 /* --- mongoc-socket.c */
Index: rpm/rpmio/mongoc.h
===================================================================
--- rpm.orig/rpmio/mongoc.h
+++ rpm/rpmio/mongoc.h
@@ -38,8 +38,10 @@
 # include <sys/un.h>
 #endif
 
+#ifdef HAVE_LIBSASL2
 #include <sasl/sasl.h>
 #include <sasl/saslutil.h>
+#endif
 
 #include <openssl/bio.h>
 #include <openssl/ssl.h>
@@ -2455,6 +2457,8 @@ BSON_END_DECLS
 /*==============================================================*/
 /* --- mongoc-sasl-private.h */
 
+#ifdef MONGOC_ENABLE_SASL
+
 BSON_BEGIN_DECLS
 
 
@@ -2498,6 +2502,7 @@ bool _mongoc_sasl_step             (mong
 
 
 BSON_END_DECLS
+#endif
 
 /*==============================================================*/
 /* --- mongoc-ssl-private.h */